summaryrefslogtreecommitdiff
path: root/pango/pango-types.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-04-12 23:55:33 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-04-12 23:55:33 +0000
commit8ec2822cc5b8839996aaeb062f6acc0a899d98b4 (patch)
tree4ea746ea30fb59c7f7cb2bd9c15c444c8e94c6f2 /pango/pango-types.h
parent5a6d314da7216520b3b2d7f30ca3da5ef4444ecb (diff)
downloadpango-8ec2822cc5b8839996aaeb062f6acc0a899d98b4.tar.gz
Quantize kerning adjustment, otherwise all the metrics hinting effort will
2007-04-12 Behdad Esfahbod <behdad@gnome.org> * pango/pango-ot-buffer.c (apply_gpos_ltr), (apply_gpos_rtl), (pango_ot_buffer_output): * pango/pango-types.h: * pango/pangofc-font.c (pango_fc_font_kern_glyphs): * pango/pangofc-private.h: Quantize kerning adjustment, otherwise all the metrics hinting effort will be ruined by a non-whole-pixel kerning value. In the future we want to take lsb_delta and rsb_delta into the game before quantizing the adjustment here, but we don't have those values handy right now. svn path=/trunk/; revision=2225
Diffstat (limited to 'pango/pango-types.h')
-rw-r--r--pango/pango-types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pango-types.h b/pango/pango-types.h
index 6a9ef191..59ecac0c 100644
--- a/pango/pango-types.h
+++ b/pango/pango-types.h
@@ -53,6 +53,8 @@ typedef guint32 PangoGlyph;
* That's unlikely to matter for practical use and the expression is much
* more compact and faster than alternatives that work exactly for both
* integers and floating point.
+ *
+ * PANGO_PIXELS also behaves differently for +512 and -512.
*/
int pango_units_from_double (double d) G_GNUC_CONST;