No description
Find a file
Jeff Epler 750e90e627 Reader: partially accomodate the BDF 2.2 format
At least for some CJK character sets, FontForge writes a font which
includes a METRICSSET section in the preamble, and later in some glyphs
skips the SWIDTH/DWIDTH lines in preference to the default values specified
in the METRICSSET.  According to the Adobe document describing the 2.2
format, this is ia size optimization for storing bdf fonts because many
glyphs have the same metrics, particular for vertical text layouts.

X's bdftopcf never accepted these extensions not present in BDF 2.1,
but fontforge writes them anyway.  (I'm not sure who is using fontforge's
BDF output, given this fact)

This adds minimal support for these elements of the font.

Testing performed:
 * converted yasa-200.bdf to pcf, then rendered with Adafruit_CircuitPython_BitmapFont's simpletest on a host computer
with https://github.com/adafruit/Adafruit_CircuitPython_Bitmap_Font/pull/34 applied. (this was broken before this PR)
 * converted a bdf file produced by otf2bdf and displayed it similarly (this was working before)
2021-01-05 14:29:34 -06:00
.github/workflows Add Code of Conduct, etc., to bring project closer to Adafruit standard 2021-01-05 08:36:13 -06:00
X11 minimize X headers required 2021-01-04 09:43:12 -06:00
.gitignore checkpoint 2020-12-31 13:06:48 -06:00
atom.c Checkpoint 2020-12-31 12:22:21 -06:00
AUTHORS bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
bdfint.h Reader: partially accomodate the BDF 2.2 format 2021-01-05 14:29:34 -06:00
bdfread.c Reader: partially accomodate the BDF 2.2 format 2021-01-05 14:29:34 -06:00
bdftopcf.c checkpoint 2020-12-31 12:33:22 -06:00
bdfutils.c bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
bitmap.c bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
bitmap.h bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
bitmaputil.c bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
bufio.c bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
bufio.h bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
build.sh Increase memory to 64MB 2021-01-05 14:22:33 -06:00
ChangeLog.historical Add Code of Conduct, etc., to bring project closer to Adafruit standard 2021-01-05 08:36:13 -06:00
CODE_OF_CONDUCT.md Add Code of Conduct, etc., to bring project closer to Adafruit standard 2021-01-05 08:36:13 -06:00
config.h bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
CONTRIBUTING.md Add Code of Conduct, etc., to bring project closer to Adafruit standard 2021-01-05 08:36:13 -06:00
COPYING bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
defaults.c bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
fileio.c bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
filewr.c bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
fntfil.h bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
fntfilio.h bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
fntfilst.h bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
font.h bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
fontaccel.c bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
fontink.c bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
fontmisc.h bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
fontutil.h bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
fontxlfd.h bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
import.py checkpoint 2020-12-31 13:07:32 -06:00
pcf.h bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
pcfwrite.c bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
private.c bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00
README.md Add Code of Conduct, etc., to bring project closer to Adafruit standard 2021-01-05 08:36:13 -06:00
server.py Checkpoint 2020-12-31 12:22:21 -06:00
shell.html Avoid apply for long data 2020-12-31 14:42:05 -06:00
stubs.h Checkpoint 2020-12-31 12:22:21 -06:00
utilbitmap.c bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00

web-bdftopcf

Convert BDF files to PCF files in your web browser

The latest version is hosted at https://adafruit.github.io/web-bdftopcf

To learn how to use web-bdftopcf, visit the Adafruit Learning System

This project is built with emscripten; for details, see the github actions files that implement the CI and deployment workflow.