summaryrefslogtreecommitdiff
path: root/src/cairo-scaled-font-subsets-private.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2011-09-15 21:52:26 +0930
committerAdrian Johnson <ajohnson@redneon.com>2011-09-15 22:05:22 +0930
commit47e16d0e565fcb579148285394bafd45b53ecaff (patch)
tree1178dd94f045002175d1782c567623b245c87e6e /src/cairo-scaled-font-subsets-private.h
parent1e67fb4490c19085def6f7d77314cc66449288b5 (diff)
downloadcairo-47e16d0e565fcb579148285394bafd45b53ecaff.tar.gz
subsetting: Support unicode fontnames
Most fonts use Window platform specific encoded font names since they allow unicode names. - Make _cairo_truetype_read_font_name() read the Windows platform names first. If this fails, fallback to reading he the Mac platform MacRoman encoded name. - Use the PDF method of encoding non ASCII PS font names. Poppler will correctly extract the unicode name. - Make PDF embed the font family name as AsciiHex if the name is not ASCII.
Diffstat (limited to 'src/cairo-scaled-font-subsets-private.h')
-rw-r--r--src/cairo-scaled-font-subsets-private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-scaled-font-subsets-private.h b/src/cairo-scaled-font-subsets-private.h
index 92f002098..2edf77091 100644
--- a/src/cairo-scaled-font-subsets-private.h
+++ b/src/cairo-scaled-font-subsets-private.h
@@ -345,7 +345,7 @@ cairo_private cairo_int_status_t
_cairo_scaled_font_subset_create_glyph_names (cairo_scaled_font_subset_t *subset);
typedef struct _cairo_cff_subset {
- char *font_name;
+ char *family_name_utf8;
char *ps_name;
double *widths;
double x_min, y_min, x_max, y_max;
@@ -427,7 +427,7 @@ cairo_private void
_cairo_cff_fallback_fini (cairo_cff_subset_t *cff_subset);
typedef struct _cairo_truetype_subset {
- char *font_name;
+ char *family_name_utf8;
char *ps_name;
double *widths;
double x_min, y_min, x_max, y_max;