summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPDF/Renderer.cpp
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2023-01-05 01:34:07 +0000
committerAndreas Kling <kling@serenityos.org>2023-01-05 12:09:35 +0100
commit91db49f7b330b632e6b73e7113c9c62e8dfbaaf8 (patch)
tree66175f7f721bf51c5719325a0a8ffae5e36e7df7 /Userland/Libraries/LibPDF/Renderer.cpp
parent66320234989bf3cbc8f0e27c991f7644977314d2 (diff)
downloadserenity-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.cpp2
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;