1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 05:34:58 +00:00
serenity/Userland/Libraries/LibPDF/Fonts
Nico Weber 3a39939995 LibPDF: Make truetype fonts marked as symbol fonts actually work
Turns out the spec didn't mean that the whole range is populated,
but that one of these ranges is populated. So take the argmax.

As fallout, explicitly mark the Liberation fonts as nonsymbolic
when we use them for the 14 standard fonts. Else, we'd regress
"PostScrõpt", since the Liberation fonts would otherwise go down
the "is symbolic or doesn't have explicit encoding" codepath,
since the standard fonts usually don't have an explicit encoding.

As a fallout from _that_, since the 14 standard fonts now go down
the regular truetype rendering path, and since we don't implement
lookup by postscript name yet, glyphs not present in Liberation
now cause text to stop rendering with a diag, instead of rendering
a "glyph not found" symbol. That isn't super common, only an
additional 4 files appear for the "'post' table not yet implemented"
diag. Since we'll implement that soon, this seems fine until then.
2024-03-07 11:29:47 -05:00
..
AdobeGlyphList.cpp LibPDF: Implement ZapfDingbats clause of the adobe glphy list algorithm 2024-03-01 14:17:42 +01:00
AdobeGlyphList.h LibPDF: Implement ZapfDingbats clause of the adobe glphy list algorithm 2024-03-01 14:17:42 +01:00
CFF.cpp LibPDF: Give CFF Glyph 0 the name .notdef 2024-02-20 06:54:50 -05:00
CFF.h Userland+Tests: Remove unused <AK/Tuple.h> includes 2024-03-01 14:05:53 -07:00
PDFFont.cpp LibPDF: Make PDFFont::replacement_for() return a ScaledFont 2024-03-01 17:56:59 +01:00
PDFFont.h LibPDF: Make truetype fonts marked as symbol fonts actually work 2024-03-07 11:29:47 -05:00
PS1FontProgram.cpp Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
PS1FontProgram.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
SimpleFont.cpp LibPDF: Scale default glyph width by font size and x scale 2024-02-12 14:32:04 +00:00
SimpleFont.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TrueTypeFont.cpp LibPDF: Make truetype fonts marked as symbol fonts actually work 2024-03-07 11:29:47 -05:00
TrueTypeFont.h LibPDF: Give TrueTypePainter a ScaledFont instead of a Font 2024-03-01 17:56:59 +01:00
Type0Font.cpp LibPDF: Implement support for vertical text for Type0 2024-03-02 12:25:09 +01:00
Type0Font.h LibPDF: Honor writing mode in TJ operator as well 2024-03-02 12:25:09 +01:00
Type1Font.cpp LibPDF: Make truetype fonts marked as symbol fonts actually work 2024-03-07 11:29:47 -05:00
Type1Font.h LibPDF: Let Type1Font use TrueTypePainter for standard fonts 2024-02-27 07:02:27 +01:00
Type1FontProgram.cpp LibPDF: Don't crash on zero-width characters in type1 fonts 2024-02-27 07:01:05 +01:00
Type1FontProgram.h LibPDF/CFF: Store if a font program is CID-keyed 2024-02-15 12:32:31 +01:00
Type3Font.cpp LibPDF: Add an initial implementation of type 3 glyph rendering 2023-11-17 19:47:53 +00:00
Type3Font.h LibPDF: Pass Renderer to SimpleFont::draw_glyph() 2023-11-17 19:47:53 +00:00