From: Sven L. <lu...@dp...> - 2001-04-11 12:05:34
|
On Tue, Apr 10, 2001 at 09:35:54PM -0700, James Simmons wrote: > > Hi! > > I'm looking for the best font drawing alogrithm for the framebuffer > layer. I'm been banging my head on a really fast implementation that > can work at any pixel depth. Anyone got pointers? Hello James, ... i haven't looked much at the fbdev code lately, but ... in the design of ruby, did you look at the passage from cfb8/16/24/... to fb in the XFree server ? Older X code, extended mfb (m for monochrome) to create cfb (c for color, 8 bpp at first i think) and then iterated that multiple times. I think i have seen something similar in the fbdev drivers, so maybe it would be interresting for you to look at the XFree fb code, which replaces the older cfbxxx stuff and will work for all depths. There may be speed issues, but if X can do it, then why not fbdev. Also, there was a thread about cfb vs fb speed comparison on the Xfree lists some time ago. Now most XF4 drivers switch over to fb. That said, i don't know the way it is done right now, so maybe what i say may not be relevant ... Friendly, Sven Luther |