Commit Graph

22 Commits

Author SHA1 Message Date
Chris Speciale
579efa5351 Font: Allow setting dpi internally
This fixes some unexpected changes in text rendering for OpenFL which rely on a private function in Lime. Previously we defaulted at 72 dpi, which apparently is expected to layout the text properly. Most displays are 96 dpi or higher today, so we should probably look into this. For RenderGlyph, which was previously broken over several versions, we will now use a dpi of 96 for now. In the next version of lime, we absolutely should alter the function signature to allow for renderGlyph to accept a dpi argument.
2024-10-30 12:49:30 -04:00
tobil4sk
7c9a1894f6 Take const char pointers in lime::Font methods 2023-04-21 19:11:38 +01:00
Joshua Granick
3b9ca3a770 Fixes for vdynamic return types 2019-03-14 12:34:08 -07:00
Joshua Granick
78e99bf1d9 Remove whitespace lines 2018-07-18 17:32:51 -07:00
Joshua Granick
6ae72ea462 Native cleanup, merge lime.ui.Mouse into Window 2018-07-09 15:31:55 -07:00
Joshua Granick
58057a4457 Cleanup imports 2018-06-11 14:19:37 -07:00
Joshua Granick
aae40a4189 Improve support for combining characters in TextLayout 2017-10-09 11:20:41 -07:00
James Gray
3e6a5a9770 Fix crash in Font::Decompose 2015-09-22 12:31:50 -05:00
James Gray
208f1ca8f0 plug leaks in lime.text.Font 2015-09-21 19:08:21 -05:00
James Gray
68adb5ff95 fix TextLayout.cpp for 64-bit targets 2015-07-22 16:57:35 -05:00
Joshua Granick
d73460da18 Create a new native Bytes implementation, use it instead of ByteArray for better ByteArray and Bytes support 2015-06-19 14:11:15 -07:00
vroad
21b84a5b3b Fix high cpu usage in TextLayout 2015-06-03 22:28:31 +09:00
Joshua Granick
74592ed5bd Rename (and refactor) TextLayout, update GlyphMetrics 2015-03-14 23:50:32 -07:00
Joshua Granick
168473e5c2 Change Font.getChar* to Font.getGlyph* (makes more sense) and remove unused Glyph/GlyphIndex classes 2015-03-12 22:19:49 -07:00
Joshua Granick
7aaaa16ada Make Font.getGlyphMetrics use an index only 2015-03-12 21:59:51 -07:00
Joshua Granick
1eede284a6 Add Font.getCharIndices 2015-03-12 21:53:55 -07:00
Joshua Granick
93b20b38c0 Improve system for Font rendering, need to improve charCode -> glyphIndex mapping though 2015-03-12 21:26:18 -07:00
Joshua Granick
ca05d8994c More work on Font API 2015-03-10 01:14:39 -07:00
Joshua Granick
0f6f022dab Add Font.getTextMetrics, rename TextLayout->TextEngine 2015-03-09 08:09:09 -07:00
Joshua Granick
a406401848 Add more Font details, fix @:font embedding 2015-03-09 04:57:13 -07:00
jgranick
9804f1970a Compile fix 2015-03-07 21:27:12 -08:00
Joshua Granick
7b5130f6d9 Progress on text support 2015-03-07 21:02:27 -08:00