mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:15:07 +00:00
![]() Fonts should have size font_size times total scaling. We tried to get that by computing text_rendering_matrix.x_scale() * font_size, but text_rendering_matrix.x_scale() also includes horizontal_scaling, which shouldn't be part of font size. Same for character_spacing and word_spacing. This is all a big mess that's caused by LibPDF using ScaledFont, which requires scaling to be aprt of the text type. I have an in-progress local branch that moves LibPDF to directly use VectorFont, which will hopefully make this (and other things) nicer. But first, let's get this right, and then make sure we don't regress it when things change :^) |
||
---|---|---|
.. | ||
CFF.cpp | ||
CFF.h | ||
PDFFont.cpp | ||
PDFFont.h | ||
PS1FontProgram.cpp | ||
PS1FontProgram.h | ||
SimpleFont.cpp | ||
SimpleFont.h | ||
TrueTypeFont.cpp | ||
TrueTypeFont.h | ||
Type0Font.cpp | ||
Type0Font.h | ||
Type1Font.cpp | ||
Type1Font.h | ||
Type1FontProgram.cpp | ||
Type1FontProgram.h | ||
Type3Font.cpp | ||
Type3Font.h |