summaryrefslogtreecommitdiff
path: root/write.c
AgeCommit message (Collapse)Author
2023-04-01Variable scope reductions as recommended by cppcheckAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-06-141em is font size, not heightChristopher Zimmermann
2021-05-25Fail if ftell failsPeter Hutterer
Fixes a coverity warning: ftell may return -1 on error which we then pass into fseek later. We properly fail there anyway, so this change is unlikely to have any real effect.
2020-10-31writeFile: avoid file leak on errorsAlan Coopersmith
Resolves issues found by Oracle Parfait 4.0 static analyser: File Leak [file-ptr-leak]: Leaked File out at line 337 of app/fonttosfnt/write.c in function 'writeFile'. out initialized at line 330 with fopen File Leak [file-ptr-leak]: Leaked File out at line 366 of app/fonttosfnt/write.c in function 'writeFile'. out initialized at line 330 with fopen Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-10-24fix sign of calculated descentChristopher Zimmermann
I discovered this bug when converting the Tamsyn font from pcf to otb.
2020-10-23remove leftover debug printfChristopher Zimmermann
2020-09-22use PIXEL_SIZE to calculate lineGapChristopher Zimmermann
2020-09-22fix sign of sTypoDescenderChristopher Zimmermann
2020-09-22calculate capHeight and xHeight as recommendedChristopher Zimmermann
2020-09-22move metrics calculation to write.cChristopher Zimmermann
2020-09-22provide version 5 OS/2 tableChristopher Zimmermann
this was an attempt to fix linespacing, which did not help, but would still keep it around to avoid double efforts.
2020-09-22use design metrics in eblc instead of calculated metricsChristopher Zimmermann
This will probably not work for a font providing multiple strikes. But .bdf fonts don't provide multiple strikes (or do they?!?) I don't know about .pcf fonts, but I would recommend against running fonttosfnt on .pcf fonts because bdf2pcf seems to loose some attributes during conversion.
2020-09-22use more properties according to XLFDChristopher Zimmermann
2020-09-22correctly set OS2 fsSelection for italic and bold fontsChristopher Zimmermann
2020-09-22use zero lineGap, sTypoDescender should be negativeChristopher Zimmermann
According to https://simoncozens.github.io/fonts-and-layout/opentype.html#vertical-metrics-hhea-and-os2 sTypoDescender should be negative and lineGap should be zero.
2020-02-07Fix uninitialised memory writernhmjoj
If macTime() fails write zeros instead of unitialized memory to the date fields.
2008-05-02Fix off-by-one entrySel field.George Williams
2008-03-13I’m not sure the PCLT table is needed by the fonts generated here, butJames Cloos
use a fixed 16 char string as the initializer for the PCLT Fontname field to silence the warning (or error for some compilers) as reported in bugzilla: http://bugs.freedesktop.org/show_bug.cgi?id=3928
2004-04-23Merging XORG-CURRENT into trunkXACE-SELINUX-MERGEEgbert Eich
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0Egbert Eich
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich
2003-11-25Initial revisionKaleb Keithley