summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-06-19 03:26:22 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-06-19 03:26:22 +0000
commitdf64ec2aaf6a397144c08d92ce63a457fc309c67 (patch)
tree090ec81f2c58ec0a67583ec9416b240a9f89d051
parent437a0345a8656333217a3601081fff2d81b6b79e (diff)
downloadpango-df64ec2aaf6a397144c08d92ce63a457fc309c67.tar.gz
Bug 447568 – improve docs on what absolute size means
2007-06-18 Behdad Esfahbod <behdad@gnome.org> Bug 447568 – improve docs on what absolute size means * pango/fonts.c: Improve docs. svn path=/trunk/; revision=2357
-rw-r--r--ChangeLog6
-rw-r--r--pango/fonts.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2660d721..26f39082 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-18 Behdad Esfahbod <behdad@gnome.org>
+
+ Bug 447568 – improve docs on what absolute size means
+
+ * pango/fonts.c: Improve docs.
+
2007-06-15 Hans Breuer <hans@breuer.org>
* pango/makefile.msc : updated
diff --git a/pango/fonts.c b/pango/fonts.c
index b5968ef5..48e26de1 100644
--- a/pango/fonts.c
+++ b/pango/fonts.c
@@ -387,7 +387,8 @@ pango_font_description_get_size (const PangoFontDescription *desc)
* value of 10 * PANGO_SCALE gives a 10 pixel font.
*
* Sets the size field of a font description, in device units. This is mutually
- * exclusive with pango_font_description_set_size().
+ * exclusive with pango_font_description_set_size() which sets the font size
+ * in points.
*
* Since: 1.8
**/
@@ -407,7 +408,7 @@ pango_font_description_set_absolute_size (PangoFontDescription *desc,
* pango_font_description_get_size_is_absolute:
* @desc: a #PangoFontDescription
*
- * Determines whether the size of the font is in points or device units.
+ * Determines whether the size of the font is in points (not absolute) or device units (absolute).
* See pango_font_description_set_size() and pango_font_description_set_absolute_size().
*
* Return value: whether the size for the font description is in
@@ -1178,6 +1179,9 @@ pango_font_description_to_filename (const PangoFontDescription *desc)
result = pango_font_description_to_string (desc);
+ /* XXX This should be rewritten to read char-by-char instead
+ * of byte-by-byte, to be Unicode safe.
+ */
p = result;
while (*p)
{