mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +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:
parent
54c98a46d8
commit
14ddab5519
Notes:
sideshowbarker
2024-07-17 03:45:48 +09:00
Author: https://github.com/nico
Commit: 14ddab5519
Pull-request: https://github.com/SerenityOS/serenity/pull/21946
Reviewed-by: https://github.com/AtkinsSJ
2 changed files with 13 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue