1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

LibPDF: Stub out type3_font_set_glyph_width*

Type 3 font glyphs begin with either `d0` or `d1`. If we bail out
with an "unsupported" error on the very first operator in a glyph,
we'll never paint the glyph.

Just stub these out for now. We probably want to do more in here in
the future (see "TABLE 5.10 Type 3 font operators" in the 1.7 spec).
This commit is contained in:
Nico Weber 2023-11-15 07:47:17 -05:00 committed by Sam Atkins
parent 54c98a46d8
commit 14ddab5519
2 changed files with 13 additions and 3 deletions

View file

@ -559,8 +559,17 @@ RENDERER_HANDLER(text_show_string_array)
return {};
}
RENDERER_TODO(type3_font_set_glyph_width)
RENDERER_TODO(type3_font_set_glyph_width_and_bbox)
RENDERER_HANDLER(type3_font_set_glyph_width)
{
// FIXME: Do something with this.
return {};
}
RENDERER_HANDLER(type3_font_set_glyph_width_and_bbox)
{
// FIXME: Do something with this.
return {};
}
RENDERER_HANDLER(set_stroking_space)
{