197 Commits

Author SHA1 Message Date
Ed_
7dd1bad72d Working toward mac and linux builds, no need for stb_image it looks like... 2025-01-13 12:00:00 -05:00
Ed_
d7560b4a89 Adjusted sokol demo 2025-01-13 00:39:21 -05:00
Ed_
33e0b227a0 Added get_font_entry, resolve_px_scalar_size, snap_normalized_position_to_view 2025-01-13 00:39:14 -05:00
Ed_
4ff3edfed4 fix get_normalized_position_scale 2025-01-12 23:28:48 -05:00
Ed_
375825d34e Correct misspelling of storage_entry 2025-01-12 22:10:14 -05:00
Ed_
3b2bf6e322 Opps: Forgot to do lifetime of storage_entry.visible 2025-01-12 22:02:46 -05:00
Ed_
2e3b55b972 Reademe: Add link to notes 2025-01-12 11:31:42 -05:00
Ed_
7bec503af7 measure_shape_size & get_font_vertical_metrics: Make context immutable pass 2025-01-12 11:16:14 -05:00
Ed_
cbbb48d631 see freetype_wip.odin to ignored for now 2025-01-12 10:43:54 -05:00
Ed_
8f491fd843 Update scripts doc 2025-01-12 10:42:22 -05:00
Ed_
989be15390 More proofing 2025-01-12 10:34:44 -05:00
Ed_
207fa94803 Proofing 2025-01-12 10:29:11 -05:00
Ed_
470800af2a Added note in backend guide about UV convention. 2025-01-12 09:52:10 -05:00
Ed_
a47937f615 Completed initial draft for guide_backend.odin 2025-01-12 09:38:24 -05:00
Ed_
a4dafe01c8 Finish ### draw_text procedures draft in docs/readme.md 2025-01-11 23:10:00 -05:00
Ed_
e8218f3bf8 Finished inital draft for draw list generation docs in guide_architecture.md 2025-01-11 22:59:52 -05:00
Ed_
b220812950 Initial draft of shaping pass guide 2025-01-11 20:39:03 -05:00
Ed_
046c69c477 Realized while writing the docs that I need to preseve non-visible glyphs in the shape. (Fixed some crashing as well)
So the shaper has been adjusted along with downstream codepaths in drawlist gen pass.
2025-01-11 20:38:43 -05:00
Ed_
f7e4278300 formatting, cleanup, more progress on docs 2025-01-11 17:31:32 -05:00
Ed_
e8a7b21eba fix parser handling of glyph shape freeing 2025-01-11 17:31:21 -05:00
Ed_
b78a544aa8 Progress on documentation 2025-01-11 11:29:48 -05:00
Ed_
dbe97a7176 Made sure alpha sharpen is only applied when the color alpha is at or above 1.0 2025-01-11 08:47:11 -05:00
Ed_
d56e1d608c Finalize picking for demo
Won't be satsified, just need to fix the actual rendering so the tuning isn't required.
2025-01-11 01:41:50 -05:00
Ed_
a1b4bcf77f Update Readme.md 2025-01-11 01:36:51 -05:00
Ed_
4f9de8f539 refinement to demo 2025-01-11 01:08:56 -05:00
Ed_
48927fd008 Fixed shaper bug, removed shaper_shape_text_uncached_advanced (intergrated into harfbuzz) 2025-01-11 00:51:39 -05:00
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_
3b59ac75bf update ignore for thirdparty 2025-01-10 17:54:18 -05:00
Ed_
7af3c49dfc remove ols.json 2025-01-10 17:53:11 -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_
99a1f77699 remove proc using stmt usage in backend_sokol.odin 2025-01-10 13:29:10 -05:00
Ed_
a14e4faf29 remove using usage from sokol_demo.odin 2025-01-10 13:24:58 -05:00
Ed_
572abf5d86 compiling.. borken tho... 2025-01-10 13:09:52 -05:00
Ed_
f6ea780747 progress on updating sokol backend & demo 2025-01-10 12:45:15 -05:00
Ed_
2eb94e077f More cleanup, doc updates 2025-01-10 12:44:53 -05:00
Ed_
18decf3e46 Add local version of stb_truetype 2025-01-10 12:13:45 -05:00
Ed_
ddfd529993 Progress on cleanup 2025-01-10 09:52:44 -05:00
Ed_
77cf07ce16 Updating shaders 2025-01-10 09:52:28 -05:00
Ed_
36cc557975 WIP: Updating public repo with latest version 2025-01-10 09:07:26 -05:00
Ed_
d329327555 incorrect heading 2024-12-29 19:41:51 -05:00
Ed_
c41e09f377 Update to interface doc. 2024-12-29 19:41:19 -05:00
Ed_
f1a47223ea Update Readme.md
Added a screencap of showcase section
2024-12-29 18:46:48 -05:00
Ed_
e53abccc98 Update Readme.md
* Added an mp4 of the demo
* Removed todos going to convert them to issues on github
2024-12-29 18:35:31 -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