head 1.3; access; symbols netbsd-11-0-RELEASE:1.3 netbsd-11-0-RC7:1.3 netbsd-11-0-RC6:1.3 netbsd-11-0-RC5:1.3 netbsd-11-0-RC4:1.3 netbsd-11-0-RC3:1.3 netbsd-11-0-RC2:1.3 netbsd-11-0-RC1:1.3 netbsd-11:1.3.0.2 netbsd-11-base:1.3 netbsd-10-1-RELEASE:1.1 netbsd-9-4-RELEASE:1.1 netbsd-10-0-RELEASE:1.1 netbsd-10-0-RC6:1.1 netbsd-10-0-RC5:1.1 netbsd-10-0-RC4:1.1 netbsd-10-0-RC3:1.1 netbsd-10-0-RC2:1.1 netbsd-10-0-RC1:1.1 netbsd-10:1.1.0.4 netbsd-10-base:1.1 netbsd-9-3-RELEASE:1.1 netbsd-9-2-RELEASE:1.1 netbsd-9-1-RELEASE:1.1 netbsd-9-0-RELEASE:1.1 netbsd-9-0-RC2:1.1 netbsd-9-0-RC1:1.1 netbsd-9:1.1.0.2 netbsd-9-base:1.1; locks; strict; comment @# @; 1.3 date 2024.03.12.09.36.06; author macallan; state Exp; branches; next 1.2; commitid czcAfBPci6SCVQ1F; 1.2 date 2023.07.27.08.30.02; author macallan; state Exp; branches; next 1.1; commitid CL9q0wbVTvhKVpyE; 1.1 date 2019.01.02.22.05.24; author macallan; state Exp; branches; next ; commitid jMqisysqApYD1g6B; desc @@ 1.3 log @use uint8_t for all 8bit masks and data to avoid sign extending weirdness found by running this on hppa with gcc12 @ text @This will attempt to load a .bdf font into wsdisplay, to be used with wsconsctl -dw font= Optionally it can: - produce a header to be used with src/sys/dev/wsfont/ - write a .wsf file to be used with wsfontload - produce debug output Command line options: -o will write a file instead of trying to feed the font to wsdisplay, default format is wsf -h to be used with -o, will write a header usable with dev/wsfont/ -f force bdfload to use a non-monospaced font, which would otherwise be rejected. Use with caution, results will look uneven. -v be verbose. This will dump various font parameters to the console. -d dump glyph shapes to the console, mostly for font debugging -e override the font's encoding -N override the font's name for both file output and wsdisplay -2 double the size of a font -s smoothe pixel staircases when enlarging Caveats: - fonts wider than 16 pixels won't work yet - some drivers may have trouble with font widths that are not a multiple of 4 - no attempt has been made to make this play nice with vga text mode @ 1.2 log @document command line option @ text @d18 2 @ 1.1 log @a crude BDF font loader for wsdisplay @ text @d3 16 a20 4 - the program does not distinguish between monospace and proportional fonts, and terminal output is necessarily monospace. Proportional fonts should work but the glyphs will be left justified in the character cell so things will look uneven. @