summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-05-22 14:05:07 +0200
committerTor Andersson <tor.andersson@artifex.com>2012-05-22 14:05:07 +0200
commit7d64b5572452df30aa82fc004727a1906a859ca1 (patch)
treec04a37dde6c8873fef57e126247a758b875701fd
parentc2b09f944a2c90d71cc4902e50a09137fc173ecd (diff)
downloadghostpdl-mooscript.tar.gz
Reset transform so that freetype fonts work in mooscript.mooscript
-rw-r--r--moo/dev_ghost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/moo/dev_ghost.c b/moo/dev_ghost.c
index 30ba5410f..51b078fb5 100644
--- a/moo/dev_ghost.c
+++ b/moo/dev_ghost.c
@@ -130,9 +130,10 @@ build_char(gs_show_enum *penum, gs_state *pgs, gs_font *gsfont, gs_char cid, gs_
gs_setcachedevice(penum, pgs, w2);
- if (fzfont->ft_face) {
+ if (fzfont->ft_face) {
FT_Face face = fzfont->ft_face;
FT_Set_Char_Size(face, 64, 64, 72, 72);
+ FT_Set_Transform(face, NULL, NULL);
FT_Load_Glyph(face, gid, FT_LOAD_NO_BITMAP | FT_LOAD_NO_HINTING);
gs_moveto(pgs, 0, 0);
FT_Outline_Decompose(&face->glyph->outline, &outline_funcs, pgs);