summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-05-27 19:43:49 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-05-27 19:43:49 +0000
commit4caf16365e5eb027f14e29038c2376e9a9dcf4dc (patch)
treeda0a8722dc20179c972ac29590aa856c3c085b7e /docs
parent5ad5eff481421dbb95f450788807cd10315dc5d6 (diff)
downloadpango-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 'docs')
-rw-r--r--docs/pango-sections.txt4
-rw-r--r--docs/tmpl/fonts.sgml45
2 files changed, 48 insertions, 1 deletions
diff --git a/docs/pango-sections.txt b/docs/pango-sections.txt
index f70f2e58..b3a7f140 100644
--- a/docs/pango-sections.txt
+++ b/docs/pango-sections.txt
@@ -161,6 +161,10 @@ pango_font_metrics_get_ascent
pango_font_metrics_get_descent
pango_font_metrics_get_approximate_char_width
pango_font_metrics_get_approximate_digit_width
+pango_font_metrics_get_underline_thickness
+pango_font_metrics_get_underline_position
+pango_font_metrics_get_strikethrough_thickness
+pango_font_metrics_get_strikethrough_position
<SUBSECTION>
PangoFont
PANGO_TYPE_FONT
diff --git a/docs/tmpl/fonts.sgml b/docs/tmpl/fonts.sgml
index 5b2ff5ba..8bb68f1e 100644
--- a/docs/tmpl/fonts.sgml
+++ b/docs/tmpl/fonts.sgml
@@ -387,7 +387,10 @@ The GObject type for #PangoFontMask.
<!-- ##### STRUCT PangoFontMetrics ##### -->
<para>
A #PangoFontMetrics structure holds the overall metric information
-for a font (possibly restricted to a script).
+for a font (possibly restricted to a script). The fields of this
+structure are private to implementations of a font backend. See
+the documentation of the corresponding getters for documentation
+of their meaning.
</para>
@ref_count:
@@ -395,6 +398,10 @@ for a font (possibly restricted to a script).
@descent:
@approximate_char_width:
@approximate_digit_width:
+@underline_position:
+@underline_thickness:
+@strikethrough_position:
+@strikethrough_thickness:
<!-- ##### MACRO PANGO_TYPE_FONT_METRICS ##### -->
<para>
@@ -456,6 +463,42 @@ The GObject type for #PangoFontMetrics.
@Returns:
+<!-- ##### FUNCTION pango_font_metrics_get_underline_thickness ##### -->
+<para>
+
+</para>
+
+@metrics:
+@Returns:
+
+
+<!-- ##### FUNCTION pango_font_metrics_get_underline_position ##### -->
+<para>
+
+</para>
+
+@metrics:
+@Returns:
+
+
+<!-- ##### FUNCTION pango_font_metrics_get_strikethrough_thickness ##### -->
+<para>
+
+</para>
+
+@metrics:
+@Returns:
+
+
+<!-- ##### FUNCTION pango_font_metrics_get_strikethrough_position ##### -->
+<para>
+
+</para>
+
+@metrics:
+@Returns:
+
+
<!-- ##### STRUCT PangoFont ##### -->
<para>
The #PangoFont structure is used to represent