On Thu, 11 Sep 2014 09:05:01 +0200 (CEST) "Jiri Svoboda" <[email protected]> wrote:
> Hi Martin, > > > Thanks for the offer. I think creating a font from scratch with even > "the most common scripts would be a lot of work though." > It took me 2-3 hours to create each of sans8 and sans8b. I don't > consider that 'a lot of work'. It is some amount of work, but it > definitely is manageable. Feel free to add the fonts. Hmm, when we implement font enumeration we can have glyph fallback to another font for glyphs not present in the font file. > "I guess we could: > > 1) Use freetype2 library (or some other tool like FontForge) to > convert OpenType fonts to bitmap pcf fonts." > Yup. Although I doubt the quality will be stellar. It might be better > if the resulting bitmap fonts allowed for shades of gray, because > with anti- aliasing freetype output might look less crappy. But pcf > does not support shades of gray AFAIK. Indeed, AFAIR it doesn't. Seems like I'll have to implement a loader for yet another format :) > 2) Add freetype2 to coastline and use it to render OpenType fonts to > "bitmap on-the-fly (provided that freetype was installed). According > to its documentation, the library should be pretty straightforward to > port[1]." > This would solve the problem with shades of gray. Note that this > creates a sort of hard dependency of mainline on the coastline. I am > not saying that it's a bad thing, not sure if we can avoid it in the > future. I don't think it will be a hard dependency - if freetype2 is not available, just use the builtin font or a pcf based font. We'll need some sort of a font server to enumerate available fonts anyway, so freetype support may be a plugin for that or even a standalone server if we wanted to. I'll have to think about this concept first, it just popped off the top of my head :) Martin _______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/listinfo/helenos-devel
