diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2008-06-29 19:31:47 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2008-06-29 19:31:47 +0930 |
commit | 2f99a294cd2367c4649428534b3429522448260c (patch) | |
tree | 20fcafb02ddf344fc1d0a015ce33ff56e9ccdc46 /src/cairo-scaled-font-subsets-private.h | |
parent | 95771d62c57c081fe350e0d33326aaa6a27139da (diff) | |
download | cairo-2f99a294cd2367c4649428534b3429522448260c.tar.gz |
Add _cairo_truetype_index_to_ucs4()
for doing reverse cmap lookups on truetype/opentype fonts one glyph at
a time.
Diffstat (limited to 'src/cairo-scaled-font-subsets-private.h')
-rw-r--r-- | src/cairo-scaled-font-subsets-private.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/cairo-scaled-font-subsets-private.h b/src/cairo-scaled-font-subsets-private.h index da64f7f1e..c62123561 100644 --- a/src/cairo-scaled-font-subsets-private.h +++ b/src/cairo-scaled-font-subsets-private.h @@ -554,4 +554,26 @@ _cairo_type2_charstrings_fini (cairo_type2_charstrings_t *charstrings); cairo_private cairo_int_status_t _cairo_truetype_create_glyph_to_unicode_map (cairo_scaled_font_subset_t *font_subset); +/** + * _cairo_truetype_index_to_ucs4: + * @scaled_font: the #cairo_scaled_font_t + * @index: the glyph index + * @ucs4: return value for the unicode value of the glyph + * + * If possible (depending on the format of the underlying + * #cairo_scaled_font_t and the font backend in use) assign + * the unicode character of the glyph to @ucs4. + * + * If mapping glyph indices to unicode is supported but the unicode + * value of the specified glyph is not available, @ucs4 is set to -1. + * + * Return value: %CAIRO_STATUS_SUCCESS if successful, + * %CAIRO_INT_STATUS_UNSUPPORTED if mapping glyph indices to unicode + * is not supported. Possible errors include %CAIRO_STATUS_NO_MEMORY. + **/ +cairo_private cairo_int_status_t +_cairo_truetype_index_to_ucs4 (cairo_scaled_font_t *scaled_font, + unsigned long index, + uint32_t *ucs4); + #endif /* CAIRO_SCALED_FONT_SUBSETS_PRIVATE_H */ |