diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-05-22 20:10:08 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-05-22 20:10:08 +0000 |
commit | ec8d35bf511a8dcdd612850917e1e9ae9b36e1d0 (patch) | |
tree | f53a6154f829fc6ff81f278d7176c84ce4c290af /pango/pangocairo-win32font.c | |
parent | f9697a634b7267fa0743e47561c28b3ca3ae226b (diff) | |
download | pango-ec8d35bf511a8dcdd612850917e1e9ae9b36e1d0.tar.gz |
New function pango_font_describe_with_absolute_size().
2006-05-22 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-font.h, pango/fonts.c: New function
pango_font_describe_with_absolute_size().
* pango/pangocairo-font.c (_pango_cairo_font_get_hex_box_info):
* pango/pangocairo-win32font.c (create_metrics_for_context):
* pango/pangofc-font.c (pango_fc_font_class_init),
(pango_fc_font_describe_absolute),
(pango_fc_font_create_metrics_for_context):
* pango/pangowin32.c (pango_win32_font_class_init),
(pango_win32_font_get_metrics), (pango_win32_font_describe),
(pango_win32_font_describe_absolute): Implement and use
PangoFontClass->describe_absolute.
Diffstat (limited to 'pango/pangocairo-win32font.c')
-rw-r--r-- | pango/pangocairo-win32font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangocairo-win32font.c b/pango/pangocairo-win32font.c index 4de0d2b4..a7ef250a 100644 --- a/pango/pangocairo-win32font.c +++ b/pango/pangocairo-win32font.c @@ -308,7 +308,7 @@ create_metrics_for_context (PangoFont *font, &metrics->strikethrough_position); layout = pango_layout_new (context); - font_desc = pango_font_describe (font); + font_desc = pango_font_describe_with_absolute_size (font); pango_layout_set_font_description (layout, font_desc); pango_layout_set_text (layout, sample_str, -1); pango_layout_get_extents (layout, NULL, &extents); |