diff options
author | MacDue <macdue@dueutil.tech> | 2023-01-05 01:34:07 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-05 12:09:35 +0100 |
commit | 91db49f7b330b632e6b73e7113c9c62e8dfbaaf8 (patch) | |
tree | 66175f7f721bf51c5719325a0a8ffae5e36e7df7 /Userland/Libraries/LibPDF/Renderer.cpp | |
parent | 66320234989bf3cbc8f0e27c991f7644977314d2 (diff) | |
download | serenity-91db49f7b330b632e6b73e7113c9c62e8dfbaaf8.zip |
LibPDF: Use subpixel accurate text rendering
This just enables the new tricks from LibGfx with the same nice
improvements :^)
Diffstat (limited to 'Userland/Libraries/LibPDF/Renderer.cpp')
-rw-r--r-- | Userland/Libraries/LibPDF/Renderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibPDF/Renderer.cpp b/Userland/Libraries/LibPDF/Renderer.cpp index 6c8f434a42..c41f1ba124 100644 --- a/Userland/Libraries/LibPDF/Renderer.cpp +++ b/Userland/Libraries/LibPDF/Renderer.cpp @@ -747,7 +747,7 @@ void Renderer::show_text(DeprecatedString const& string) auto glyph_width = char_width * font_size; if (code_point != 0x20) - text_state().font->draw_glyph(m_painter, glyph_position.to_type<int>(), glyph_width, char_code, state().paint_color); + text_state().font->draw_glyph(m_painter, glyph_position, glyph_width, char_code, state().paint_color); auto tx = glyph_width; tx += text_state().character_spacing; |