summaryrefslogtreecommitdiff
path: root/src/cairo-win32-font.c
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2008-04-13 22:16:52 +0930
committerAdrian Johnson <ajohnson@redneon.com>2008-04-13 22:16:52 +0930
commitd96fdd58abf8d6c8692dbb08ec54cdd80accba79 (patch)
treecff6877917b0b541da9a5d5fd5cf0ea5c7df13f3 /src/cairo-win32-font.c
parentaf94b8d2a312500d0f81697021ba2c653accfeee (diff)
win32: Fix broken printing of type1 fonts
ExtTextOut() does not work with Type 1 font glyph indices when printing. The same code works fine when dst->dc is a display. It appears that ExtTextOut expects unicode character values when using Type 1 fonts and a printer DC. Fix this by making Type 1 fonts in the win32-printing surface use the fallback path for non Windows fonts. ie the glyphs will be emitted as filled paths.
Diffstat (limited to 'src/cairo-win32-font.c')
-rw-r--r--src/cairo-win32-font.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cairo-win32-font.c b/src/cairo-win32-font.c
index 27b58191..eeba47a6 100644
--- a/src/cairo-win32-font.c
+++ b/src/cairo-win32-font.c
@@ -490,6 +490,16 @@ _cairo_win32_scaled_font_select_unscaled_font (cairo_scaled_font_t *scaled_font,
return CAIRO_STATUS_SUCCESS;
}
+cairo_bool_t
+_cairo_win32_scaled_font_is_type1 (cairo_scaled_font_t *scaled_font)
+{
+ cairo_win32_scaled_font_t *win32_scaled_font;
+
+ win32_scaled_font = (cairo_win32_scaled_font_t *) scaled_font;
+
+ return win32_scaled_font->is_type1;
+}
+
static void
_cairo_win32_scaled_font_done_unscaled_font (cairo_scaled_font_t *scaled_font)
{