diff options
author | Owen Taylor <otaylor@redhat.com> | 2004-05-27 19:43:49 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2004-05-27 19:43:49 +0000 |
commit | 4caf16365e5eb027f14e29038c2376e9a9dcf4dc (patch) | |
tree | da0a8722dc20179c972ac29590aa856c3c085b7e /pango/pango-font.h | |
parent | 5ad5eff481421dbb95f450788807cd10315dc5d6 (diff) | |
download | pango-4caf16365e5eb027f14e29038c2376e9a9dcf4dc.tar.gz |
Add underline and strikethrough position and thickness metrics.
Thu May 27 15:32:03 2004 Owen Taylor <otaylor@redhat.com>
* pango/pango-font.h pango/fonts.c: Add underline and
strikethrough position and thickness metrics.
* pango/pangofc-font.c: Implement underline and strikethrough
position and thickness metrics.
* pango/pango-fontset.c (pango_fontset_real_get_metrics):
Initialize metrics from the metrics of the first font
in the fontset.
Diffstat (limited to 'pango/pango-font.h')
-rw-r--r-- | pango/pango-font.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pango/pango-font.h b/pango/pango-font.h index 56b3b72f..ebe1fc87 100644 --- a/pango/pango-font.h +++ b/pango/pango-font.h @@ -159,6 +159,10 @@ int pango_font_metrics_get_ascent (PangoFontMetri int pango_font_metrics_get_descent (PangoFontMetrics *metrics); int pango_font_metrics_get_approximate_char_width (PangoFontMetrics *metrics); int pango_font_metrics_get_approximate_digit_width (PangoFontMetrics *metrics); +int pango_font_metrics_get_underline_position (PangoFontMetrics *metrics); +int pango_font_metrics_get_underline_thickness (PangoFontMetrics *metrics); +int pango_font_metrics_get_strikethrough_position (PangoFontMetrics *metrics); +int pango_font_metrics_get_strikethrough_thickness (PangoFontMetrics *metrics); #ifdef PANGO_ENABLE_BACKEND @@ -172,6 +176,10 @@ struct _PangoFontMetrics int descent; int approximate_char_width; int approximate_digit_width; + int underline_position; + int underline_thickness; + int strikethrough_position; + int strikethrough_thickness; }; #endif /* PANGO_ENABLE_BACKEND */ |