summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-24fix sign of calculated descentChristopher Zimmermann
I discovered this bug when converting the Tamsyn font from pcf to otb.
2020-10-23handle empty foundry encoded as NULLChristopher Zimmermann
to fix a segfault
2020-10-23remove leftover debug printfChristopher Zimmermann
2020-10-21Bump to 1.2.0fonttosfnt-1.2.0Peter Hutterer
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-22Add warnings when wrapping multiple fonts and on PCF fontsChristopher 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-22use standard C rounding functionsChristopher Zimmermann
2020-09-22correctly set OS2 fsSelection for italic and bold fontsChristopher Zimmermann
2020-09-22truncate foundry if there is no known abbreviation.Christopher Zimmermann
Honestly I have no idea why the foundry needs to fit in four bytes. But anyway truncation might indeed be better then "UNKN" ? Anyone more knowledgeable than me out there?
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-09-22don't add arbitrary number to the glypth metricsChristopher Zimmermann
This caused pango to calculate wrong, too large font extents and in consequence gvim used too large character cells.
2020-06-11Guess Regular style for Medium WeightPeng Wu
X Logical Font Description recognize "Medium" as "Regular". Update the faceWeight function to change style from "Medium" to "Regular".
2020-02-07Fix uninitialised memory writernhmjoj
If macTime() fails write zeros instead of unitialized memory to the date fields.
2020-02-07Fix incorrect error handling in macTime()rnhmjoj
mktime() and time() return (time_t -1) to signal an error. Checking for negative values will incorrectly assume an error happened for any calendar date before the unix epoch.
2020-01-06Bump to 1.1.0fonttosfnt-1.1.0Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-12-25Accept a BDF font on stdinJouke Witteveen
This makes it easier to transition from bdftopcf. Although an OTB file could include fonts from multiple BDF sources, that functionality is not currently implemented for fonts read from stdin. Signed-off-by: Jouke Witteveen <j.witteveen@gmail.com>
2019-12-25Mention .otb as an extensionJouke Witteveen
The OTB (OpenType Bitmap) extension has found some traction, so suggest that. Signed-off-by: Jouke Witteveen <j.witteveen@gmail.com>
2019-12-25Correct a string literalJouke Witteveen
Signed-off-by: Jouke Witteveen <j.witteveen@gmail.com>
2019-12-05Round font size to integer value when reading bitmap fontPeng Wu
Some fonts have a ppem value like 11.9, this patch adds integer rounding to convert those ppem value to 12 instead of 11.
2019-12-04allow ISO-646.1991-IRV as well, adobe standard for bdfRyan Farley
Allow for BDF file with no specified encoding to be read as Adobe Standard (per freetype's BDF driver), and handle any Unicode-equivalent encoding without changing the encoding name.
2019-12-04let freetype handle ISO-8859-1 mappingRyan Farley
https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#ft_encoding indicates that ISO-8859-1 is automatically mapped to Unicode for BDF and PCF fonts -- trying to use FT_Select_Charmap() with FT_ENCODING_NONE leads to an error for such fonts.
2019-08-30check for freetype NULL atomsRyan Farley
Freetype uses NULL to represent an empty string when retrieving a BDF property -- check for this in addition to an actual error
2019-01-10Avoid undefined behaviourMaya Rashish
Left shifting a negative is undefined. For consistency, use the equivalent form of multiplication for the positive numbers as well.
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-02Mark vsprintf_alloc as printf-like functionPeter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Eric Anholt <eric@anholt.net>
2018-08-01Bump to 1.0.5fonttosfnt-1.0.5Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-08-01Replace _BSD_SOURCE with _DEFAULT_SOURCEPeter Hutterer
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-08-01Fix shadowing i variable complaintPeter Hutterer
C99 is a magical thing! Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-08-01Remove shadowing rc variablePeter Hutterer
All code paths assign rc and heck it immedately after. We can re-use the one from the outer loop. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-08-01README: update repository URL to gitlabPeter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-07-31Constify a few string argumentsPeter Hutterer
Cuts down on compiler warning by at least 64%, what a bargain! Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2014-06-01autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01configure: Drop AM_MAINTAINER_MODEAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-01config: Add missing AC_CONFIG_SRCDIRAlan Coopersmith
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: replace hard coded man page section with substitution stringsGaetan Nadon
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: remove trailing spaces and tabsGaetan Nadon
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon
This silences an Autoconf warning
2011-01-12config: remove unrequired AC_SUBST([*_LIBS])Gaetan Nadon
This macro is called by PKG_CHECK_MODULES Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: remove unrequired AC_SUBST([*_CFLAGS])Gaetan Nadon
This macro is called by PKG_CHECK_MODULES Signed-off-by: Gaetan Nadon <memsize@videotron.ca>