From ddc8276393f0d58cbb9a5b82c296ca4d063188ba Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 21 Apr 2002 15:02:54 +0000 Subject: [PATCH] changed to new font structure. --- lib/example/makefonts.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/example/makefonts.cc b/lib/example/makefonts.cc index 69243db..370a81a 100644 --- a/lib/example/makefonts.cc +++ b/lib/example/makefonts.cc @@ -82,7 +82,9 @@ SWFFONT * t1font2swffont(int i) wfont->maxascii = encodingsize; wfont->numchars = num; - wfont->flags = /*layout*/0x80 + /*bold*/0?1:0 + /*italic*/(angle>0.05)?2:0; + + wfont->style = (/*bold*/0?FONT_STYLE_BOLD:0) + (angle>0.05?FONT_STYLE_ITALIC:0); + wfont->glyph = (SWFGLYPH*)malloc(num*sizeof(SWFGLYPH)); memset(wfont->glyph, 0, num*sizeof(SWFGLYPH)); wfont->glyph2ascii = (U16*)malloc(num*sizeof(U16)); -- 1.7.10.4