summaryrefslogtreecommitdiff
path: root/pango/fonts.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-04-29 19:41:23 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-04-29 19:41:23 +0000
commitdd69229f4e5bea613aec846d9964edc7d2683825 (patch)
tree96e68e3f2770bb47cc68669d8eb352845a7403ac /pango/fonts.c
parent58493b0080dc8d91e09b8b9ec05f910388730047 (diff)
downloadpango-dd69229f4e5bea613aec846d9964edc7d2683825.tar.gz
Bug 329547 – pango_layout_get_pixel_extents and
2006-04-29 Behdad Esfahbod <behdad@gnome.org> Bug 329547 – pango_layout_get_pixel_extents and pango_layout_get_pixel_size cause off-by-one metrics * docs/pango-sections.txt: * docs/tmpl/glyphs.sgml: * pango/pango-types.h: Define PANGO_PIXELS_FLOOR and * PANGO_PIXELS_CEIL. * pango/pango-layout.c (pango_layout_get_pixel_extents), (pango_layout_get_pixel_size): Make sure logical rects are consistent and ink rects are inclusive.
Diffstat (limited to 'pango/fonts.c')
-rw-r--r--pango/fonts.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pango/fonts.c b/pango/fonts.c
index 69c3fef1..59da712a 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -378,7 +378,7 @@ pango_font_description_get_size (const PangoFontDescription *desc)
/**
* pango_font_description_set_absolute_size:
* @desc: a #PangoFontDescription
- * @size: the new size, in Pango units. There are #PANGO_SCALE Pango units in one
+ * @size: the new size, in Pango units. There are %PANGO_SCALE Pango units in one
* device unit. For an output backend where a device unit is a pixel, a @size
* value of 10 * PANGO_SCALE gives a 10 pixel font.
*
@@ -1341,7 +1341,7 @@ pango_font_metrics_unref (PangoFontMetrics *metrics)
* actual drawn ink. It is necessary to lay out the text to figure
* where the ink will be.)
*
- * Return value: the ascent, in Pango units. (1 point == #PANGO_SCALE Pango units.)
+ * Return value: the ascent, in Pango units. (1 point == %PANGO_SCALE Pango units.)
**/
int
pango_font_metrics_get_ascent (PangoFontMetrics *metrics)
@@ -1361,7 +1361,7 @@ pango_font_metrics_get_ascent (PangoFontMetrics *metrics)
* actual drawn ink. It is necessary to lay out the text to figure
* where the ink will be.)
*
- * Return value: the descent, in Pango units. (1 point == #PANGO_SCALE Pango units.)
+ * Return value: the descent, in Pango units. (1 point == %PANGO_SCALE Pango units.)
**/
int
pango_font_metrics_get_descent (PangoFontMetrics *metrics)
@@ -1380,7 +1380,7 @@ pango_font_metrics_get_descent (PangoFontMetrics *metrics)
* determining the initial size for a window. Actual characters in
* text will be wider and narrower than this.
*
- * Return value: the character width, in Pango units. (1 point == #PANGO_SCALE Pango units.)
+ * Return value: the character width, in Pango units. (1 point == %PANGO_SCALE Pango units.)
**/
int
pango_font_metrics_get_approximate_char_width (PangoFontMetrics *metrics)
@@ -1401,7 +1401,7 @@ pango_font_metrics_get_approximate_char_width (PangoFontMetrics *metrics)
* is generally somewhat more accurate than the result of
* pango_font_metrics_get_approximate_char_width() for digits.
*
- * Return value: the digit width, in Pango units. (1 point == #PANGO_SCALE Pango units.)
+ * Return value: the digit width, in Pango units. (1 point == %PANGO_SCALE Pango units.)
**/
int
pango_font_metrics_get_approximate_digit_width (PangoFontMetrics *metrics)