summaryrefslogtreecommitdiffstats
path: root/minuitwrp/truetype.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix invalid memory access when rendering a ttf glyph with 'left' < 0Vojtech Bocek2015-03-191-0/+5
| | | | | | | * Fixes for example 'j' in Roboto-Regular Change-Id: I0cf778c99f391900e164be743165cf8aad891020 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Fix deadlock in gr_ttf_measureEx if called before the height is cachedVojtech Bocek2015-03-191-52/+54
| | | | Change-Id: I2691e2ee4b272e7425d318b05404360598e2ea92
* Properly disable GGL_TEXTURE_2D after using it in minuitwrpVojtech Bocek2015-03-111-1/+2
| | | | | Change-Id: Ib100ccf3c8f6c622beb40b37ba3f61aad69d7d93 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* minuitwrp: fix crash issue, when the console use TTF font to display unicode font.xiaolu2015-03-051-20/+33
| | | | | | gui: fix terminal command unusual line breaks and missing characters at the end of a read buf. Change-Id: I8d3d740b6066b1594c5148b2012f0e7bcbecc22b
* add support unicode font not only asciisoyu2014-12-091-7/+55
| | | | | | | | | | | | need to define custom theme(include custom ttf files) in device tree : TW_CUSTOM_THEME := device/xxxx/yyyy/recovery/res For example: https://github.com/twrp/android_device_xiaomi_armani Change-Id: I6bebdfbdd75c99bfe216a8c0789af63c6fe4b9de
* Add support for TrueType fontsVojtech Bocek2014-10-141-0/+731
* Keeps original font system in place * Uses the same API as original font system: - You can render only one line at a time - You can only use one font and color for one gr_text* call * Caches all rendered text, with a string cache limited to 400 entries, then it trucates to 250, which results in memory usage hovering around 5-10MB Change-Id: I36107b9dcd8d57bae4486fce8b8f64e49ef3d906 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>