mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 12:18:01 +02:00
Ensure Type 3 fonts do not add a .notdef glyph
This commit is contained in:
parent
1ae5a41951
commit
5440055fc0
1 changed files with 1 additions and 1 deletions
|
|
@ -294,7 +294,7 @@ _cairo_sub_font_create (cairo_scaled_font_subsets_t *parent,
|
|||
|
||||
/* Reserve first glyph in subset for the .notdef glyph except for
|
||||
* Type 3 fonts */
|
||||
if (! _cairo_font_face_is_user (scaled_font->font_face)) {
|
||||
if (! scaled_font) {
|
||||
status = _cairo_sub_font_map_glyph (sub_font, 0, NULL, -1, &subset_glyph);
|
||||
if (unlikely (status)) {
|
||||
_cairo_hash_table_destroy (sub_font->sub_font_glyphs);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue