Commit graph

18 commits

Author SHA1 Message Date
foamyguy
7924283773
Merge pull request #2 from adafruit/fix-unused-var
Avoid an unused variable diagnostic in newest emscripten
2024-11-07 08:06:54 -06:00
ca25b06189 Avoid an unused variable diagnostic in newest emscripten 2024-11-07 08:04:44 -06:00
foamyguy
9c55e8ff58 try ubuntu-latest 2024-11-07 07:58:26 -06:00
foamyguy
9d1be76aea update upload-artifact version 2024-11-06 21:00:29 -06:00
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
Jeff Epler
9f4ab8c373 Increase memory to 64MB
this was needed for a pretty much worst-case font, yasahshi rendered at
200 points tall.  Conversion also takes long enough that the browser
starts getting irritated.
2021-01-05 14:22:33 -06:00
Jeff Epler
be11e12294 Add Code of Conduct, etc., to bring project closer to Adafruit standard 2021-01-05 08:36:13 -06:00
Jeff Epler
6367a40d0c minimize X headers required 2021-01-04 09:43:12 -06:00
Jeff Epler
2228aa12ad Avoid apply for long data 2020-12-31 14:42:05 -06:00
Jeff Epler
b2636620ac actually push to gh-pages 2020-12-31 13:14:44 -06:00
Jeff Epler
95e703e42e sudo 2020-12-31 13:11:08 -06:00
Jeff Epler
4b4a377976 ow my container 2020-12-31 13:10:31 -06:00
Jeff Epler
2de801a77f Try to fix build error
Actions gave the inscrutable error:
    Error: fatal: unable to access 'https://github.com/jepler/web-bdftopcf/': server certificate verification failed. CAfile: none CRLfile: none
2020-12-31 13:09:26 -06:00
Jeff Epler
d42f67dfc9 checkpoint 2020-12-31 13:07:32 -06:00
Jeff Epler
d9216c3c10 checkpoint 2020-12-31 13:06:48 -06:00
Jeff Epler
f64083083f checkpoint 2020-12-31 12:33:22 -06:00
Jeff Epler
17ef3559fe Checkpoint 2020-12-31 12:22:21 -06:00
Jeff Epler
be0089cc60 bdftopcf from debian xfonts-utils-7.7+6 2020-12-31 10:15:31 -06:00