Skip to content

Commit

Permalink
Fix font x_scale value in _compute_transform()
Browse files Browse the repository at this point in the history
Signed-off-by: Maks Naumov <maksqwe1@ukr.net>
Reviewed-by: Bryce Harrington <b.harrington@samsung.com>
  • Loading branch information
Maks Naumov authored and Bryce Harrington committed Aug 28, 2014
1 parent c6ae5b1 commit e6bf829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cairo-ft-font.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e6bf829

Please sign in to comment.