diff options
author | Alexander Larsson <alexl@redhat.com> | 2001-04-20 16:57:12 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-04-20 16:57:12 +0000 |
commit | a80cbc0ab0d2331923d34f104feae37062753a5f (patch) | |
tree | fd58ecfa1eeb52cf221cd7a37309982559dd84d8 /pango | |
parent | ae3c79f4dd45eb87764be5bf3e5ca2f6fa4b64fb (diff) | |
download | pango-a80cbc0ab0d2331923d34f104feae37062753a5f.tar.gz |
Set approximate_digit_width and approximate_char_width to some cheesy
2001-04-20 Alexander Larsson <alexl@redhat.com>
* pango/pangoxft-font.c (pango_xft_font_get_metrics):
Set approximate_digit_width and approximate_char_width to
some cheesy value. Not good, but better than nothing.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangoxft-font.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangoxft-font.c b/pango/pangoxft-font.c index 794b555a..346e9e24 100644 --- a/pango/pangoxft-font.c +++ b/pango/pangoxft-font.c @@ -289,6 +289,8 @@ pango_xft_font_get_metrics (PangoFont *font, metrics->ascent = PANGO_SCALE * xfont->xft_font->ascent; metrics->descent = PANGO_SCALE * xfont->xft_font->descent; + metrics->approximate_digit_width = PANGO_SCALE * xfont->xft_font->max_advance_width; + metrics->approximate_char_width = PANGO_SCALE * xfont->xft_font->max_advance_width; return; } |