History log of /xsrc/local/programs/bdfload/bdfload.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 51817185 12-Mar-2024 macallan <macallan@NetBSD.org>

remove accidentally left in debug goop

# b3baceec 12-Mar-2024 macallan <macallan@NetBSD.org>

use uint8_t for all 8bit masks and data to avoid sign extending weirdness
found by running this on hppa with gcc12

# 53a12b5f 08-Jan-2024 macallan <macallan@NetBSD.org>

add support for doubling a font's size, with optional smoothing
- works only on fonts up to 8 pixels wide for now
- smoothing attempts to detect pixel staircases and add pixels to smooth
them out

# 4ffa922f 27-Jul-2023 macallan <macallan@NetBSD.org>

include glyph name in -d output

# 682eda17 25-Oct-2022 macallan <macallan@NetBSD.org>

put back quotation mark removal in FAMILI_NAME statement which got broken
in a previous commit

# 16ae1398 25-Oct-2022 macallan <macallan@NetBSD.org>

keep track of character names and dump them into the header file if known

# 999c8572 25-Oct-2022 macallan <macallan@NetBSD.org>

do not rely on every STARTCHAR/ENDCHAR sequence starting with ENCODING - the
standard doesn't specify in which order each glyph's properties are listed

# 6c735b96 27-Sep-2022 christos <christos@NetBSD.org>

- cast to unsigned char for ctype macros
- some warn/err improvements

# 43d302b1 27-Sep-2022 macallan <macallan@NetBSD.org>

rename a local variable so it doesn't conflict with a global one
NFC

# a777d5c5 27-Sep-2022 macallan <macallan@NetBSD.org>

remove debug printf()

# a5a7ac3f 18-Sep-2022 macallan <macallan@NetBSD.org>

error out on proportional fonts, provide option to override

# 51bbcd86 29-Aug-2022 macallan <macallan@NetBSD.org>

add -N option to override the font's name

# 7dd7205f 23-Aug-2022 macallan <macallan@NetBSD.org>

limit the comment width in the header output to the size of the character cell

# 7d6aaba4 23-Aug-2022 macallan <macallan@NetBSD.org>

if there are comments in the bdf copy them into the header output

# 426ebb7f 23-Aug-2022 macallan <macallan@NetBSD.org>

use [] instead of # to represent pixels in the header output, this way pixels
are somewhat closer to square and the preview looks closer to the actual
output.
suggested by uwe@

# 2d60533c 23-Aug-2022 macallan <macallan@NetBSD.org>

add -h option to write font data as a header file that can be compiled
into a kernel

# ec211365 16-Aug-2022 macallan <macallan@NetBSD.org>

move \n where it's supposed to be
now fonts wider than 8 are dumped correctly

# b9e0dc8c 16-Aug-2022 macallan <macallan@NetBSD.org>

fix tpyo - now we draw characters with a smaller bounding box than the
character cell correctly, like term14.bdf

# 554a5d78 16-Aug-2022 macallan <macallan@NetBSD.org>

add -d option to dump rendered characters to the console

# 61348eb3 16-Aug-2022 macallan <macallan@NetBSD.org>

- convert remaining error output to err()
- suppress console output unless -v is specified

# 2b154882 08-Jun-2022 uwe <uwe@NetBSD.org>

bdfload: Teach it to write wsf font files.

wsfontload(8) now groks simple "wsf" file format - that is basically a
header of kinda struct wsdisplay_font but with string fields embedded
and numeric fields in little-endian and font data afterwards.

Teach bdfload to write out such files if -o file.wsf argument is
specified.

While here fix a couple of bugs too (sorry, should have been separate
commits). Fix an off by one in numchars calculations. Fix the type
of buflen.

# ce18d260 09-May-2022 uwe <uwe@NetBSD.org>

bdfload: g/c trailing whitespace

# d5f9d0db 02-Jan-2019 macallan <macallan@NetBSD.org>

a crude BDF font loader for wsdisplay