summaryrefslogtreecommitdiff
path: root/src/cairo-scaled-font-subsets-private.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2010-05-12 23:12:55 +0930
committerAdrian Johnson <ajohnson@redneon.com>2010-05-16 20:52:31 +0930
commitedcefa87ed0a8ff59b54ef9251182ce68f9158ba (patch)
treebefb80cd0997e00854726a78b89c0db3b675f093 /src/cairo-scaled-font-subsets-private.h
parent34fd094b3be54138c20ea5c4aab1d9597d056f35 (diff)
downloadcairo-edcefa87ed0a8ff59b54ef9251182ce68f9158ba.tar.gz
type1: Use correct glyph advance when subsetting type 1 fonts
Previously the glyph advance in font units was used for the widths in the PDF font dictionary. This only works for Type 1 fonts that use a [0.001 0 0 0.001 0 0] font matrix. https://bugs.freedesktop.org/show_bug.cgi?id=28061
Diffstat (limited to 'src/cairo-scaled-font-subsets-private.h')
-rw-r--r--src/cairo-scaled-font-subsets-private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-scaled-font-subsets-private.h b/src/cairo-scaled-font-subsets-private.h
index 9e12a9185..35c1e71de 100644
--- a/src/cairo-scaled-font-subsets-private.h
+++ b/src/cairo-scaled-font-subsets-private.h
@@ -451,9 +451,9 @@ _cairo_truetype_subset_fini (cairo_truetype_subset_t *truetype_subset);
typedef struct _cairo_type1_subset {
char *base_font;
- int *widths;
- long x_min, y_min, x_max, y_max;
- long ascent, descent;
+ double *widths;
+ double x_min, y_min, x_max, y_max;
+ double ascent, descent;
char *data;
unsigned long header_length;
unsigned long data_length;