On 11 September 2014 21:36, Jiri Svoboda <[email protected]> wrote:
> Martin Sucha wrote: > > > 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. > > > Well I didn't mean hard as in 'it would not work at all'. But since the > result of the library's absence would be highly noticeable visual > degradation (drop from anti-aliased proportional font to non-proportional) > which is highly undesirable, it could be considered a "hard" dependency > just as well. > I am gonna sound crazy, but... why not implement our own format? It sounds extremely simple to store letters as 8-bit-per-pixel grayscale (well, alpha mask actually; let's not disregard colored text). So, um, a file that contains a list of glyphs, each glyph with a name, width, height, baseline position, and finaly an array of bytes. Do we need anything else? Maybe kerning hints if we are feeling fancy. -- Jirka Z.
_______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/listinfo/helenos-devel
