diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2003-08-02 14:30:42 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2003-08-02 14:30:42 +0000 |
commit | bcf10a1085bdf9344e513785c1082f9b82278619 (patch) | |
tree | 8060bace8d1366f4fa92a9bae98f84d6893156d3 /pango/pangofc-font.h | |
parent | 537660728317118a8c2bd1940b2607ccf0f036ba (diff) | |
download | pango-bcf10a1085bdf9344e513785c1082f9b82278619.tar.gz |
Add API to kern a complete glyph string. Remove API to kern individual
Sat Aug 2 16:40:19 2003 Soeren Sandmann <sandmann@daimi.au.dk>
Add API to kern a complete glyph string. Remove API to kern
individual glyph pairs.
* modules/basic/basic-fc.c (basic_engine_shape): use
pango_fc_font_kern_glyphs() instead of pango_fc_font_get_kerning().
* pango/pangoft2.c (pango_ft2_font_real_kern_glyphs): add this
function, remove pango_ft2_font_real_get_kerning().
* pango/pangoxft-font.c (pango_xft_font_real_kern_glyphs): add
this function, remove pango_xft_font_real_get_kerning().
* pango/pangofc-font.c (pango_fc_font_kern_glyphs): new
function. Remove pango_fc_font_get_kerning().
* pango/pangofc-font.h: remove pango_fc_font_get_kerning(), add
pango_fc_font_kern_glyphs().
Diffstat (limited to 'pango/pangofc-font.h')
-rw-r--r-- | pango/pangofc-font.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/pango/pangofc-font.h b/pango/pangofc-font.h index 809a0e12..6e666542 100644 --- a/pango/pangofc-font.h +++ b/pango/pangofc-font.h @@ -24,6 +24,7 @@ #include <freetype/freetype.h> #include <pango/pango-font.h> +#include <pango/pango-glyph.h> #if defined(PANGO_ENABLE_ENGINE) || defined(PANGO_ENABLE_BACKEND) @@ -52,17 +53,16 @@ struct _PangoFcFontClass PangoFontClass parent_class; /*< public >*/ - FT_Face (*lock_face) (PangoFcFont *font); - void (*unlock_face) (PangoFcFont *font); - gboolean (*has_char) (PangoFcFont *font, - gunichar wc); - guint (*get_glyph) (PangoFcFont *font, - gunichar wc); - PangoGlyph (*get_unknown_glyph) (PangoFcFont *font, - gunichar wc); - int (*get_kerning) (PangoFcFont *font, - PangoGlyph left, - PangoGlyph right); + FT_Face (*lock_face) (PangoFcFont *font); + void (*unlock_face) (PangoFcFont *font); + gboolean (*has_char) (PangoFcFont *font, + gunichar wc); + guint (*get_glyph) (PangoFcFont *font, + gunichar wc); + PangoGlyph (*get_unknown_glyph) (PangoFcFont *font, + gunichar wc); + void (*kern_glyphs) (PangoFcFont *font, + PangoGlyphString *glyphs); /*< private >*/ /* Padding for future expansion */ @@ -76,17 +76,17 @@ struct _PangoFcFontClass GType pango_fc_font_get_type (void); -FT_Face pango_fc_font_lock_face (PangoFcFont *font); -void pango_fc_font_unlock_face (PangoFcFont *font); -gboolean pango_fc_font_has_char (PangoFcFont *font, - gunichar wc); -guint pango_fc_font_get_glyph (PangoFcFont *font, - gunichar wc); -PangoGlyph pango_fc_font_get_unknown_glyph (PangoFcFont *font, - gunichar wc); -int pango_fc_font_get_kerning (PangoFcFont *font, - PangoGlyph left, - PangoGlyph right); +FT_Face pango_fc_font_lock_face (PangoFcFont *font); +void pango_fc_font_unlock_face (PangoFcFont *font); +gboolean pango_fc_font_has_char (PangoFcFont *font, + gunichar wc); +guint pango_fc_font_get_glyph (PangoFcFont *font, + gunichar wc); +PangoGlyph pango_fc_font_get_unknown_glyph (PangoFcFont *font, + gunichar wc); +void pango_fc_font_kern_glyphs (PangoFcFont *font, + PangoGlyphString *glyphs); + G_END_DECLS #endif /* PANGO_ENABLE_ENGINE || PANGO_ENABLE_BACKEND */ |