Skip to content

Commit

Permalink
Fix font metrics in PDF Type 1 fonts
Browse files Browse the repository at this point in the history
edcefa8 introduced a bug in the Type 1 font metrics in PDF files.
  • Loading branch information
Adrian Johnson committed Oct 1, 2010
1 parent 877bc14 commit 3f817dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/cairo-type1-subset.c
Original file line number Diff line number Diff line change
Expand Up @@ -1356,12 +1356,12 @@ _cairo_type1_subset_init (cairo_type1_subset_t *type1_subset,
font.glyphs[i].width;
}

type1_subset->x_min = font.base.x_min;
type1_subset->y_min = font.base.y_min;
type1_subset->x_max = font.base.x_max;
type1_subset->y_max = font.base.y_max;
type1_subset->ascent = font.base.ascent;
type1_subset->descent = font.base.descent;
type1_subset->x_min = font.base.x_min/1000.0;
type1_subset->y_min = font.base.y_min/1000.0;
type1_subset->x_max = font.base.x_max/1000.0;
type1_subset->y_max = font.base.y_max/1000.0;
type1_subset->ascent = font.base.ascent/1000.0;
type1_subset->descent = font.base.descent/1000.0;

length = font.base.header_size +
font.base.data_size +
Expand Down

0 comments on commit 3f817dc

Please sign in to comment.