diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-09-26 00:22:00 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-09-26 10:04:36 -0400 |
commit | 9662be8ee77e219908b64b82e828d577dcf120f0 (patch) | |
tree | e05a1c13909c9f9af24611431ec57dc8f02d1207 /src/cairo-font-face-twin.c | |
parent | 3883a371f2ba78b17a1302ba8c5df1a79f3e4075 (diff) | |
download | cairo-9662be8ee77e219908b64b82e828d577dcf120f0.tar.gz |
[twin-font] Adjust ascent/descent
The font data uses a 64 int high font space with baseline at 50.
Diffstat (limited to 'src/cairo-font-face-twin.c')
-rw-r--r-- | src/cairo-font-face-twin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-font-face-twin.c b/src/cairo-font-face-twin.c index 75669a545..2e47d02b6 100644 --- a/src/cairo-font-face-twin.c +++ b/src/cairo-font-face-twin.c @@ -68,8 +68,8 @@ twin_scaled_font_init (cairo_scaled_font_t *scaled_font, cairo_t *cr, cairo_font_extents_t *metrics) { - metrics->ascent = .67; - metrics->descent = .33; + metrics->ascent = FY (50); + metrics->descent = FY (14); return CAIRO_STATUS_SUCCESS; } @@ -78,7 +78,7 @@ twin_scaled_font_unicode_to_glyph (cairo_scaled_font_t *scaled_font, unsigned long unicode, unsigned long *glyph) { - /* We use an indentity charmap. Which means we could live + /* We use an identity charmap. Which means we could live * with no unicode_to_glyph method too. But we define this * to map all unknown chars to a single unknown glyph to * reduce pressure on cache. */ |