Date: Sat, 18 Mar 2017 22:25:06 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 205707] Improve parsing of BDFs by vtfontcvt Message-ID: <bug-205707-8-ySuz5ALpTJ@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-205707-8@https.bugs.freebsd.org/bugzilla/> References: <bug-205707-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205707 Henry Hu <henry.hu.sh@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180939|0 |1 is obsolete| | --- Comment #7 from Henry Hu <henry.hu.sh@gmail.com> --- Created attachment 180943 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180943&action= =3Dedit fix x-position handling The previous patch has some problems in deciding the x-position of the character. The input line seems to have howmany(bb_w, 8) bytes. The bitmap is aligned = to the left, and occupies the left bb_w bits. The first shift moves the bitmap to the right, now it's right aligned to bi= t 0. The parse_bitmap_line() function seems to assume that the glyph occupies the top dwidth bits. To put the character at bb_x position, the number of bits = at right is howmany(dwidth, 8) * 8 - bb_x - bb_w. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205707-8-ySuz5ALpTJ>