No description
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) |
||
|---|---|---|
| .github/workflows | ||
| X11 | ||
| .gitignore | ||
| atom.c | ||
| AUTHORS | ||
| bdfint.h | ||
| bdfread.c | ||
| bdftopcf.c | ||
| bdfutils.c | ||
| bitmap.c | ||
| bitmap.h | ||
| bitmaputil.c | ||
| bufio.c | ||
| bufio.h | ||
| build.sh | ||
| ChangeLog.historical | ||
| CODE_OF_CONDUCT.md | ||
| config.h | ||
| CONTRIBUTING.md | ||
| COPYING | ||
| defaults.c | ||
| fileio.c | ||
| filewr.c | ||
| fntfil.h | ||
| fntfilio.h | ||
| fntfilst.h | ||
| font.h | ||
| fontaccel.c | ||
| fontink.c | ||
| fontmisc.h | ||
| fontutil.h | ||
| fontxlfd.h | ||
| import.py | ||
| pcf.h | ||
| pcfwrite.c | ||
| private.c | ||
| README.md | ||
| server.py | ||
| shell.html | ||
| stubs.h | ||
| utilbitmap.c | ||
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.