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

Adrian Johnson ajohnson at kemper.freedesktop.org
Tue Jul 28 06:05:41 PDT 2009


 src/cairo-scaled-font-subsets.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 922b1fe8e380ceba0630935460ce758ef660df75
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Tue Jul 28 22:34:42 2009 +0930

    Ensure Type 3 fonts do not use the name .notdef in the PS encoding

diff --git a/src/cairo-scaled-font-subsets.c b/src/cairo-scaled-font-subsets.c
index bbaa2e0..6eb3128 100644
--- a/src/cairo-scaled-font-subsets.c
+++ b/src/cairo-scaled-font-subsets.c
@@ -1009,7 +1009,7 @@ _cairo_scaled_font_subset_create_glyph_names (cairo_scaled_font_subset_t *subset
     }
 
     i = 0;
-    if (! _cairo_font_face_is_user (subset->scaled_font->font_face)) {
+    if (! subset->is_scaled) {
 	subset->glyph_names[0] = strdup (".notdef");
 	if (unlikely (subset->glyph_names[0] == NULL)) {
 	    status = _cairo_error (CAIRO_STATUS_NO_MEMORY);


More information about the cairo-commit mailing list