From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 22 Mar 2006 23:31:31 -0500 From: Latchesar Ionkov To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] ttf2subf Message-ID: <20060323043131.GA19272@ionkov.net> References: <903f4a3dcca9eb812b79ac7ba02d52b2@quanstro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <903f4a3dcca9eb812b79ac7ba02d52b2@quanstro.net> User-Agent: Mutt/1.4.2.1i Topicbox-Message-UUID: 1ca605b8-ead1-11e9-9d60-3106f5b1d025 You can generate fonts in subpixel mode, but they are not much different than the greyscale ones created by antialias. The reason is that when a color image is specified as a mask in libdraw, it converts it to greyscale and applies the resulting mask to every color channel. Thanks, Lucho On Wed, Mar 22, 2006 at 08:34:57PM -0600, erik quanstrom said: > not true (at least on p9p): > > ; for(i in 10 12 16) ttf2subf -f *.ttf -s $i -n dolous -m subpixel -r rgb > ; font=`{pwd}^/dolous/dolous.16.font 9term > > - erik > > On Wed Mar 22 20:27:43 CST 2006, lucho@gmx.net wrote: > > You can ignore the subpixel mode -- libdraw doesn't support it. > > > > Thanks, > > Lucho > > > > On Wed, Mar 22, 2006 at 08:03:29PM -0600, erik quanstrom said: > > > i've been using a version that makes an attempt to generate as few subfonts as possible. > > > the last time i goggled ttf2subf the website located was down. > > > > > > i've been working with code2000, which looks hideous in mono mode, but is pretty readable > > > subpixel or antialias mode, but ttf2subf is too agressive in its antialiasing and does not snap > > > near-grid vertical or horizontal lines to the grid. > > > > > > i cleaned up the code a bit and think that in subpixel mode, it generates non-grey > > > pixels. that is pixels like > > > > > > char a,b,c; > > > > > > (a<<24) | (b<<16) | (c<<8) | 0xff where a, b, c are not all equal. > > > > > > but i have not yet come up with a good solution to either issue. > > > > > > - erik > > > > > > On Wed Mar 22 18:51:46 CST 2006, mirtchovski@gmail.com wrote: > > > > i did for a while and you can find the latest source on sources or on > > > > the web. i heard there's another ttf2subf which gets better results > > > > generating less subfonts (which is what i worked last on, and i think > > > > i made reasonable success). i have no idea whether the other one has > > > > made it out. > > > > > > > > On 3/22/06, erik quanstrom wrote: > > > > > has anybody been working on this program? (it converts truetype fonts > > > > > to plan9 subfonts by using freefont.) > > > > > > > > > > - erik > > > > > > >