LibPDF: Add very basic support for Adobe Type 1 font rendering

Previously we would draw all text, no matter what font type, as
Liberation Serif, which results in things like ugly character spacing.

We now have partial support for drawing Type 1 glyphs, which are part of
a PostScript font program. We completely ignore hinting for now, which
results in ugly looking characters at low resolutions, but gain support
for a large number of typefaces, including most of the default fonts
used in TeX.
This commit is contained in:
Julian Offenhäuser 2022-08-25 11:06:21 +02:00 committed by Andreas Kling
commit b14f0950a5
Notes: sideshowbarker 2024-07-17 05:40:58 +09:00
9 changed files with 752 additions and 16 deletions

View file

@ -61,7 +61,7 @@
A(Font) \
A(FontDescriptor) \
A(FontFamily) \
A(FontFile1) \
A(FontFile) \
A(FontFile2) \
A(FontFile3) \
A(Gamma) \
@ -82,6 +82,9 @@
A(Last) \
A(LastChar) \
A(Length) \
A(Length1) \
A(Length2) \
A(Length3) \
A(Linearized) \
A(ML) \
A(Matrix) \