| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | font: add support for fallback fonts | Daniel Eklöf | 2019-07-30 | -4/+51 |
| | | | | | | | | | | | | | | | | A top-level font now has a list of fallback fonts. When a glyph cannot be found, we try each fallback font in turn, until we either find one that has the glyph, or until we've exhausted the list. To make this actually work in practise (read: to make performance acceptable), the cache is re-worked and is now populated on demand. It also supports non-ASCII characters, by using the 4-byte unicode character as index instead. Since having an array that can be indexed by a 4-byte value isn't really viable, we now have a simple hash table instead of an array. | |||
| * | font: set FT load and render flags from FontConfig properties | Daniel Eklöf | 2019-07-29 | -1/+3 |
| | | ||||
| * | font: populate glyph cache (ASCII characters only) when instantiating font | Daniel Eklöf | 2019-07-28 | -0/+1 |
| | | ||||
| * | font: add font_glyph_for_utf8() | Daniel Eklöf | 2019-07-28 | -0/+2 |
| | | | | | | | This function fills in a struct glyph with glyph bitmap data for the provided utf-8 character (essentially a FT_Bitmap wrapped in a cairo surface). | |||
| * | font: load FreeType face, and set it's pixel sizes | Daniel Eklöf | 2019-07-28 | -2/+3 |
| | | ||||
| * | initial grid implementation | Daniel Eklöf | 2019-06-13 | -0/+5 |
| This allows us to render *something*, even though it's inefficient, stupid and far far away from the real thing. | ||||
