diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2007-10-14 00:04:21 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2007-10-14 00:11:57 +0930 |
commit | 5af1b2280b2cf952624d587496158a98df0ee504 (patch) | |
tree | 93b3e6577237990b05effdecdb435eaf3fd1031a /src/cairo-scaled-font-subsets-private.h | |
parent | e347a7a7c394fc2638faa2ff52e4b96545ac1ee3 (diff) | |
download | cairo-5af1b2280b2cf952624d587496158a98df0ee504.tar.gz |
Make PostScript output text selectable
The glyph names used in the Type42 and Type1 fallback fonts are now of
the form "/uniXXXX" where XXXX is the unicode character for each
glyph. When converted to pdf (eg using ps2pdf), pdf viewers are now
able to correctly extract the text.
Diffstat (limited to 'src/cairo-scaled-font-subsets-private.h')
-rw-r--r-- | src/cairo-scaled-font-subsets-private.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cairo-scaled-font-subsets-private.h b/src/cairo-scaled-font-subsets-private.h index d6dcb3f3e..f80257bc2 100644 --- a/src/cairo-scaled-font-subsets-private.h +++ b/src/cairo-scaled-font-subsets-private.h @@ -262,6 +262,21 @@ _cairo_scaled_font_subsets_foreach_unscaled (cairo_scaled_font_subsets_t cairo_scaled_font_subset_callback_func_t font_subset_callback, void *closure); +/** + * _cairo_scaled_font_subset_create_glyph_names: + * @font_subsets: a #cairo_scaled_font_subsets_t + * + * Create an array of strings containing the glyph name for each glyph + * in @font_subsets. The array as store in font_subsets->glyph_names. + * + * Return value: CAIRO_STATUS_SUCCESS if successful, + * CAIRO_INT_STATUS_UNSUPPORTED if the font backend does not support + * mapping the glyph indices to unicode characters. Possible errors + * include CAIRO_STATUS_NO_MEMORY. + **/ +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 *base_font; int *widths; |