From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Mon, 11 Jun 2012 17:45:50 -0400 To: 9fans@9fans.net Message-ID: <906b1d58b6fdc4bb7780d898a2ba2af3@brasstown.quanstro.net> In-Reply-To: References: <794e3d261b7115da2febffdbf33fdfbc@kw.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] dejavu sans Topicbox-Message-UUID: 9cbf3318-ead7-11e9-9d60-3106f5b1d025 > Vera (I think from your contrib) works very well for me, I find that > it looks good and has good enough coverage for all my uses. ah, great. > The biggest challenge with Plan 9 fonts is getting the heights right; > often converted ttfs will have the bottom of "g" and a lot of the > non-ASCII characters cut off at either top or bottom. the problem is that libframe assumes that all glyphs in a font have the same nominal character box. this isn't the case with most fonts, especially when you have caps with hats, or little bits hanging off the bottom of low-hanging glyphs. also some proportial fonts have a few glpyhs that hang out of their nominal box. libframe is not prepared for this, and the naive rubout doesn't do a good job. the fix of course is to add stringheight() to libdraw and percolate these changes on through so that the assumption that all characters are the same height can be gotten rid of. also i would think that being a little more sophisticated about overlapped bounding boxes would be good. - erik