diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2005-11-22 20:19:15 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2005-11-22 20:19:15 +0000 |
commit | 550026ab7e2d2cfeeacd1cd68ecb1ac31a4733e4 (patch) | |
tree | de28c0dd5608ad100b5d88a92e343fa018b2c58f /pango/pangocairo-fcfont.c | |
parent | 9767e78aac25bf22ea759fdcf35ffaab487cfe48 (diff) | |
download | pango-550026ab7e2d2cfeeacd1cd68ecb1ac31a4733e4.tar.gz |
Load a font suitable for viewing English text when creating mini font for
2005-11-22 Behdad Esfahbod <behdad@gnome.org>
* pango/pangoxft-font.c (_pango_xft_font_get_mini_font): Load a font
suitable for viewing English text when creating mini font for hex
boxes. (#312477)
Diffstat (limited to 'pango/pangocairo-fcfont.c')
-rw-r--r-- | pango/pangocairo-fcfont.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/pango/pangocairo-fcfont.c b/pango/pangocairo-fcfont.c index 824c0bad..3ba8c457 100644 --- a/pango/pangocairo-fcfont.c +++ b/pango/pangocairo-fcfont.c @@ -269,22 +269,6 @@ pango_cairo_fc_font_get_glyph_info (PangoFont *font, return info; } -static void -pango_cairo_fc_font_get_glyph_extents (PangoFont *font, - PangoGlyph glyph, - PangoRectangle *ink_rect, - PangoRectangle *logical_rect) -{ - PangoCairoFcGlyphInfo *info; - - info = pango_cairo_fc_font_get_glyph_info (font, glyph); - - if (ink_rect) - *ink_rect = info->ink_rect; - if (logical_rect) - *logical_rect = info->logical_rect; -} - /* This function is cut-and-pasted from pangocairo-fcfont.c - it might be * better to add a virtual fcfont->create_context (font). */ @@ -408,6 +392,22 @@ pango_cairo_fc_font_real_get_unknown_glyph (PangoFcFont *font, } static void +pango_cairo_fc_font_get_glyph_extents (PangoFont *font, + PangoGlyph glyph, + PangoRectangle *ink_rect, + PangoRectangle *logical_rect) +{ + PangoCairoFcGlyphInfo *info; + + info = pango_cairo_fc_font_get_glyph_info (font, glyph); + + if (ink_rect) + *ink_rect = info->ink_rect; + if (logical_rect) + *logical_rect = info->logical_rect; +} + +static void pango_cairo_fc_font_shutdown (PangoFcFont *fcfont) { PangoCairoFcFont *cffont = PANGO_CAIRO_FC_FONT (fcfont); |