X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fmakefonts.cc;h=370a81ac5b20917b97798de28bbb8519c8f3efac;hb=55fe1908fb975c5080f08a9ff4862bc7d9917a0b;hp=69243db82fcb007c525b2758a302c4c78a990c9b;hpb=ba56d09e75aea33535ee745eb6456e60cf80f805;p=swftools.git 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));