From: kramm Date: Sun, 21 Apr 2002 15:02:54 +0000 (+0000) Subject: changed to new font structure. X-Git-Tag: xpdf-0-92~36 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=ddc8276393f0d58cbb9a5b82c296ca4d063188ba;p=swftools.git changed to new font structure. --- 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));