Commit Graph

35 Commits

Author SHA1 Message Date
Ed_
c64f8132dc Add assignable allocator support to stb_truetype 2025-01-10 22:44:39 -05:00
Ed_
87ab22c207 Fixed size issue (parsesr_scale convention needs to be em_to_pixels by default). 2025-01-10 20:50:33 -05:00
Ed_
79498efbf3 oops : dumb mistakes 2025-01-10 20:41:09 -05:00
Ed_
a584497563 left zoom compute to its own proc 2025-01-10 20:36:30 -05:00
Ed_
c995af36e7 Got zoom implemented on library's side. Still figuring out font size issue 2025-01-10 20:16:51 -05:00
Ed_
4afa50f1df made get_normalized_position_scale (got rid of get_snapped_position), more docs 2025-01-10 17:45:21 -05:00
Ed_
52584f888c fixing some normalized space calculation issues
I need to review the convention I'm using for the "view" or at least how I interpret these coordinate spaces so its inutitive for the interface.
At the end of the day, the draw_list should be in normalized space, however how it gets digested to that state needs to be better documented or made more explicit in its transformation from the usual user calls.
2025-01-10 16:15:09 -05:00
Ed_
91e8af8839 Got the demo to show text again (but with lots of errors) 2025-01-10 15:27:51 -05:00
Ed_
572abf5d86 compiling.. borken tho... 2025-01-10 13:09:52 -05:00
Ed_
2eb94e077f More cleanup, doc updates 2025-01-10 12:44:53 -05:00
Ed_
ddfd529993 Progress on cleanup 2025-01-10 09:52:44 -05:00
Ed_
36cc557975 WIP: Updating public repo with latest version 2025-01-10 09:07:26 -05:00
Ed_
90ca01bdaa General improvements (text and features)
* Added clear_atlas_region_caches & clear_shape_cache to VEFontCache (Usage Example: On hot-reloads to force refresh the caches if tuning the library)
* Made glyph_draw's over_sample a vec2 for initialization (incase user wants to do some float value multiple of 4x4)
* ADVANCE_SNAP_SMALLFONT_SIZE made a runtime option: Shaper_Context.adv_snap_small_font_threshold
* Some improvement to text hinting and general rendering of text
* Better defaults for initialization of the library
2024-12-29 18:27:46 -05:00
Ed_
137eea9da4 Maint update (November Odin compiler release) 2024-11-24 18:39:43 -05:00
Ed_
f7071c2810 Comment out make_map_cap as thats not in a released version of Odin yet. 2024-10-19 15:45:10 -04:00
Ed_
a8823c9776 add make_map_cap to make in mappings 2024-10-19 15:21:06 -04:00
Ed_
ba667a8fa0 Fixes for linux in parser.odin 2024-09-10 04:34:41 -04:00
Ed_
16319d9e43 Formating, name changes (making identifiers more idiomatic) 2024-07-04 16:18:26 -04:00
Ed_
ee4555485c comment out regions 2024-07-02 10:57:09 -04:00
Ed_
a930fc00d4 last cleanup for this dev pass 2024-07-02 10:34:36 -04:00
Ed_
0f4ad9bdd1 cleanup 2024-07-02 01:42:32 -04:00
Ed_
9d18a43f64 putting away freetype for now... its going to take quite a bit of effort to learn how to fix the mesh generation... 2024-07-02 01:24:13 -04:00
Ed_
b822859033 wip freetype glyph caching suffering part 2 2024-07-02 00:16:16 -04:00
Ed_
26e2aa96aa wip freetype glyph caching suffering 2024-07-02 00:16:08 -04:00
Ed_
9db6e67155 Progress on getting some horrible looking glyphs on the screen 2024-07-01 20:52:59 -04:00
Ed_
70b2d1fe55 Prepping to start getting freetype working (2) 2024-07-01 20:32:44 -04:00
Ed_
b67c1567d2 shaper_shape_from_text supports providing shape size 2024-07-01 19:47:48 -04:00
Ed_
b409063906 got harfbuzz working (need to fixup the text size measuring) 2024-07-01 19:37:29 -04:00
Ed_
7c64e20f9c missing changes 2024-07-01 17:43:41 -04:00
Ed_
10f1f7655c remove unnecessary simd defs 2024-07-01 11:29:44 -04:00
Ed_
8a7f615ebf fix typo with harfbuzz interface 2024-07-01 01:21:57 -04:00
Ed_
e55e089774 finish force rename 2024-07-01 00:53:33 -04:00
Ed_
60e90484de compile fixes, forcing a rename to lowercase 2024-07-01 00:53:19 -04:00
Ed_
e4089d3832 Change package name to lowercase 2024-06-30 22:06:44 -04:00
Ed_
b7f008521d finish force rename 2024-06-30 22:05:12 -04:00