diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-01-24 23:35:06 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-01-24 23:35:06 -0500 |
commit | efd3a965244305a069ec231b7ec28cff8d6c67c8 (patch) | |
tree | c35bd7040883c3b4baa3f3c440a84f92ec5f1b79 /src/cairo-scaled-font-private.h | |
parent | 45f269e33020d8d7cf247926712b9c64c1fb8959 (diff) |
[cairo-scaled-font] Don't err on font size 0, really
First, seems like we were rejecting degenerate font matrix right away
at the constructor. Don't do that.
Next, PS/PDF were inverting the font scale matrix, assuming that it's
invertible. We now keep the inverse too, so they can use it. For the
case of a size 0 font, both the scale matrix and its invert are set to
0,0,0,0. That's safe, even if slightly inconsistent.
Diffstat (limited to 'src/cairo-scaled-font-private.h')
-rw-r--r-- | src/cairo-scaled-font-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-scaled-font-private.h b/src/cairo-scaled-font-private.h index f16487c5..87a46166 100644 --- a/src/cairo-scaled-font-private.h +++ b/src/cairo-scaled-font-private.h @@ -91,6 +91,7 @@ struct _cairo_scaled_font { /* "live" scaled_font members */ cairo_matrix_t scale; /* font space => device space */ + cairo_matrix_t scale_inverse; /* device space => font space */ cairo_font_extents_t extents; /* user space */ /* The mutex protects modification to all subsequent fields. */ |