summaryrefslogtreecommitdiff
path: root/pango/pangofc-private.h
diff options
context:
space:
mode:
authorChristopher Blizzard <blizzard@redhat.com>2004-06-09 22:03:18 +0000
committerChristopher Blizzard <blizzard@src.gnome.org>2004-06-09 22:03:18 +0000
commit5ca931f88a431fa7158a8e406d3bf92a1bdafd07 (patch)
treeef7933a8755cd870fa96267cab67ce9d0f4d280f /pango/pangofc-private.h
parentd2f58271eab023e452d84a8dd855ad06151d0eb6 (diff)
downloadpango-5ca931f88a431fa7158a8e406d3bf92a1bdafd07.tar.gz
Add export of pangofc-decoder.h. Build pangofc-decoder.c.
Wed Jun 9 17:32:59 2004 Christopher Blizzard <blizzard@redhat.com> * pango/Makefile.am: Add export of pangofc-decoder.h. Build pangofc-decoder.c. * pango/pangofc-decoder.h pango/pangofc-decoder.c: New files. Virtual base class for any custom font decoders. * pango/pangofc-font.c: Add new PangoFcFontPrivate structure. * pango/pangofc-font.c (pango_fc_font_class_init): Attach new private structure using g_type_class_add_private(). * pango/pangofc-font.c (pango_fc_font_finalize): Make sure to unset any decoders that are attached to the font. * pango/pangofc-font.c (pango_fc_font_get_coverage): When determining coverage, use a custom decoder if available. * pango/pangofc-font.c (pango_fc_font_has_char): When determining if a font has a character, use a custom decoder if available. * pango/pangofc-font.c (pango_fc_font_get_glyph): When doing single character to glyph convertions, use a custom decoder if available. * pango/pangofc-font.c (_pango_fc_font_get_decoder): New function. Get the custom decoder for the given font. * pango/pangofc-font.c (_pango_fc_font_set_decoder): New function. Set a custom decoder for the given font. * pango/pangofc-fontmap.c: Add structure PangoFcFindFuncInfo to keep track of callbacks to create custom decoders. Modify PangoFcFontMapPrivate by adding a list of PangoFcFontFuncInfo callbacks that have been registered. * pango/pangofc-fontmap.c (pango_fc_font_map_add_find_func): New function. Add callbacks to the fontmap that will create custom decoders when pango creates new fonts. * pango/pangofc-fontmap.c (pango_fc_font_map_finalize): Clear out any findfuncs that have been registered and notify them about destruction. * pango/pangofc-fontmap.c (pango_fc_font_map_new_font): When creating new fonts, call back to any registered find functions so they can create custom decoders for those fonts. Attach those custom decoders to the newly created fonts. * pango/pangofc-fontmap.c (_pango_fc_font_map_get_coverage): Change the argument to take a PangoFcFont instead of an FcPattern. Call _pango_fc_font_map_fc_to_coverage instead of doing the conversion inline. * pango/pangofc-fontmap.c (_pango_fc_font_map_fc_to_coverage): New function. Convert an FcCharSet to a PangoCoverage object. * pango/pangofc-fontmap.h: New declarations for pango_fc_font_map_add_decoder_find_func and PangoFcDecoderFindFunc. * pango/pangofc-private.h: New declarations for _pango_fc_font_map_fc_to_coverage, _pango_fc_font_get_decoder and _pango_fc_font_set_decoder.
Diffstat (limited to 'pango/pangofc-private.h')
-rw-r--r--pango/pangofc-private.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/pango/pangofc-private.h b/pango/pangofc-private.h
index 9ef285af..ea2c8744 100644
--- a/pango/pangofc-private.h
+++ b/pango/pangofc-private.h
@@ -29,10 +29,15 @@ G_BEGIN_DECLS
void _pango_fc_font_shutdown (PangoFcFont *fcfont);
-void _pango_fc_font_map_remove (PangoFcFontMap *fcfontmap,
- PangoFcFont *fcfont);
-PangoCoverage *_pango_fc_font_map_get_coverage (PangoFcFontMap *fcfontmap,
- FcPattern *pattern);
+void _pango_fc_font_map_remove (PangoFcFontMap *fcfontmap,
+ PangoFcFont *fcfont);
+PangoCoverage *_pango_fc_font_map_get_coverage (PangoFcFontMap *fcfontmap,
+ PangoFcFont *fcfont);
+PangoCoverage *_pango_fc_font_map_fc_to_coverage (FcCharSet *charset);
+
+PangoFcDecoder *_pango_fc_font_get_decoder (PangoFcFont *font);
+void _pango_fc_font_set_decoder (PangoFcFont *font,
+ PangoFcDecoder *decoder);
G_END_DECLS