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

This commit is contained in:
Adrian Johnson 2009-07-28 22:34:42 +09:30
parent 5440055fc0
commit 922b1fe8e3

View file

@ -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);