mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
![]() We still don't apply it to the glyph itself, so they don't show up scaled or rotated, but they're at the right spot now. One big thing this here hsa going for it is that the final glyph position is now calculated with just `ext_rendering_matrix.map(glyph_position)`. Also, character_spacing and word_spacing are now used unmodified in the SimpleFont::draw_string() loop. This also means we no longer have to undo a scale when updating the position in `Renderer::show_text()`. Most of the rest stays pretty yucky though. The root cause of many problems is that ScaledFont has its rendering sized baked into the object. We want to render fonts at size font_size times scale from text matrix times scale from current transformation matrix (but not size from hotizontal_scaling). So we have to make that the font_size, but then we have to undo that in a bunch of places to get the actualy font size. This will eventually get better when LibPDF moves off ScaledFont. |
||
---|---|---|
.. | ||
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 |