diff --git a/Userland/Libraries/LibPDF/Fonts/TrueTypeFont.cpp b/Userland/Libraries/LibPDF/Fonts/TrueTypeFont.cpp index 369830b1ed..6a943a08c4 100644 --- a/Userland/Libraries/LibPDF/Fonts/TrueTypeFont.cpp +++ b/Userland/Libraries/LibPDF/Fonts/TrueTypeFont.cpp @@ -23,7 +23,7 @@ PDFErrorOr TrueTypeFont::initialize(Document* document, NonnullRefPtrget_stream(document, CommonNames::FontFile2)); auto ttf_font = TRY(OpenType::Font::try_load_from_externally_owned_memory(font_file_stream->bytes())); float point_size = (font_size * POINTS_PER_INCH) / DEFAULT_DPI; - m_font = adopt_ref(*new Gfx::ScaledFont(*ttf_font, font_size, point_size)); + m_font = adopt_ref(*new Gfx::ScaledFont(*ttf_font, point_size, point_size)); } }