[cairo-commit] src/cairo-scaled-font-subsets.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jan 16 10:19:59 UTC 2019


 src/cairo-scaled-font-subsets.c |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

New commits:
commit ef8c379e0f560ced63c2a07566a3a7d608e3996c
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Wed Jan 16 20:46:42 2019 +1030

    scaled-subsets: always include glyphs maps to character 0
    
    Issue 354

diff --git a/src/cairo-scaled-font-subsets.c b/src/cairo-scaled-font-subsets.c
index 5c1afd2d0..dc617f313 100644
--- a/src/cairo-scaled-font-subsets.c
+++ b/src/cairo-scaled-font-subsets.c
@@ -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;


More information about the cairo-commit mailing list