[Bug 205707] Improve parsing of BDFs by vtfontcvt

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 30 00:12:57 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205707

            Bug ID: 205707
           Summary: Improve parsing of BDFs by vtfontcvt
           Product: Base System
           Version: 10.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Keywords: vt
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: mi at FreeBSD.org

Created attachment 164832
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=164832&action=edit
Allow BDF-characters to have less than 16 rows

The current implementation is somewhat naive in assuming, the bitmaps will
always contain exactly 16 rows. The assumption is not verified resulting in
cryptic failure messages trying to parse a 8x13 font, for example.

The attached patch fixes this -- it parses the hex rows until it encounters the
ENDCHAR-keyword or reads the 16 rows (the hard-coded constant currently in
place).

This allows me to convert the KOI8-U font (koi8x13.bdf) from the
x11-fonts/geminifonts port. Not that the result is very useful -- presumably,
because non-UTF locales aren't supported yet.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list