[cairo] [PATCH] Fix font x_scale value in _compute_transform()
Maks Naumov
maksqwe1 at ukr.net
Wed Aug 20 09:38:37 PDT 2014
Signed-off-by: Maks Naumov <maksqwe1 at ukr.net>
---
src/cairo-ft-font.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 59df4fc..87e733b 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -745,7 +745,7 @@ _compute_transform (cairo_ft_font_transform_t *sf,
double best_y_size = 0;
for (i = 0; i < unscaled->face->num_fixed_sizes; i++) {
- double x_size = unscaled->face->available_sizes[i].y_ppem / 64.;
+ double x_size = unscaled->face->available_sizes[i].x_ppem / 64.;
double y_size = unscaled->face->available_sizes[i].y_ppem / 64.;
double distance = y_size - y_scale;
--
1.9.1
More information about the cairo
mailing list