[cairo-commit] 2 commits - src/cairo-ft-font.c
Behdad Esfahbod
behdad at kemper.freedesktop.org
Sat Jan 19 17:54:42 PST 2008
src/cairo-ft-font.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit f072d815d40e6fd44369424b68d54cea22da3a26
Author: Peter Weilbacher <mozilla at weilbacher.org>
Date: Sat Jan 19 20:48:39 2008 -0500
[cairo-ft] Fix typo in comment
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 3b625dd..4919c4e 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -1352,7 +1352,7 @@ _get_pattern_ft_options (FcPattern *pattern, cairo_ft_options_t *ret)
if (!hinting) {
ft_options.base.hint_style = CAIRO_HINT_STYLE_NONE;
}
-#endif /* FC_FHINT_STYLE */
+#endif /* FC_HINT_STYLE */
} else {
ft_options.base.antialias = CAIRO_ANTIALIAS_NONE;
}
commit 0fb800ff2258d4642a2188a7f219db9620450bc2
Author: Peter Weilbacher <mozilla at weilbacher.org>
Date: Sat Jan 19 20:47:59 2008 -0500
[cairo-ft] Add FC_PIXEL_SIZE as double, not int
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index e2ebc2d..3b625dd 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -1634,7 +1634,7 @@ _cairo_ft_scaled_font_create_toy (cairo_toy_font_face_t *toy_face,
cairo_matrix_multiply (&scale, font_matrix, ctm);
_compute_transform (&sf, &scale);
- if (! FcPatternAddInteger (pattern, FC_PIXEL_SIZE, sf.y_scale)) {
+ if (! FcPatternAddDouble (pattern, FC_PIXEL_SIZE, sf.y_scale)) {
status = _cairo_error (CAIRO_STATUS_NO_MEMORY);
goto FREE_PATTERN;
}
More information about the cairo-commit
mailing list