mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-30 02:40:13 +01:00
scaled-subsets: always include glyphs maps to character 0
Issue 354
This commit is contained in:
parent
6edf572ebb
commit
ef8c379e0f
1 changed files with 2 additions and 7 deletions
|
|
@ -625,19 +625,14 @@ _cairo_sub_font_map_glyph (cairo_sub_font_t *sub_font,
|
|||
}
|
||||
|
||||
/* If glyph is in the winansi encoding and font is not a user
|
||||
* font, put glyph in the latin subset. If glyph is .notdef
|
||||
* the latin subset is preferred but only if the latin subset
|
||||
* already contains at least one glyph. We don't want to
|
||||
* create a separate subset just for the .notdef glyph.
|
||||
*/
|
||||
* font, put glyph in the latin subset. */
|
||||
is_latin = FALSE;
|
||||
latin_character = -1;
|
||||
if (sub_font->use_latin_subset &&
|
||||
(! _cairo_font_face_is_user (sub_font->scaled_font->font_face)))
|
||||
{
|
||||
latin_character = _cairo_unicode_to_winansi (font_unicode);
|
||||
if (latin_character > 0 ||
|
||||
(latin_character == 0 && sub_font->num_glyphs_in_latin_subset > 0))
|
||||
if (latin_character > 0)
|
||||
{
|
||||
if (!sub_font->latin_char_map[latin_character]) {
|
||||
sub_font->latin_char_map[latin_character] = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue