0d0344e423
added snap_glyph_width
2025-02-13 19:44:25 -05:00
eec58a30e2
collapsing some code to use resolve_px_scalar_size
2025-02-13 17:08:37 -05:00
f145281b6a
Adjusting alpha_sharpen, & px_scalar startup defaults
2025-01-27 17:19:24 -05:00
d7560b4a89
Adjusted sokol demo
2025-01-13 00:39:21 -05:00
7bec503af7
measure_shape_size & get_font_vertical_metrics: Make context immutable pass
2025-01-12 11:16:14 -05:00
b78a544aa8
Progress on documentation
2025-01-11 11:29:48 -05:00
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
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
4f9de8f539
refinement to demo
2025-01-11 01:08:56 -05:00
48927fd008
Fixed shaper bug, removed shaper_shape_text_uncached_advanced (intergrated into harfbuzz)
2025-01-11 00:51:39 -05:00
c64f8132dc
Add assignable allocator support to stb_truetype
2025-01-10 22:44:39 -05:00
87ab22c207
Fixed size issue (parsesr_scale convention needs to be em_to_pixels by default).
2025-01-10 20:50:33 -05:00
c995af36e7
Got zoom implemented on library's side. Still figuring out font size issue
2025-01-10 20:16:51 -05:00
4afa50f1df
made get_normalized_position_scale (got rid of get_snapped_position), more docs
2025-01-10 17:45:21 -05:00
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
91e8af8839
Got the demo to show text again (but with lots of errors)
2025-01-10 15:27:51 -05:00
a14e4faf29
remove using usage from sokol_demo.odin
2025-01-10 13:24:58 -05:00
572abf5d86
compiling.. borken tho...
2025-01-10 13:09:52 -05:00
f6ea780747
progress on updating sokol backend & demo
2025-01-10 12:45:15 -05:00
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
55a4c3dee6
Updates for breaking changes (nov 7 Sokol pr)
2024-11-26 10:13:10 -05:00
16319d9e43
Formating, name changes (making identifiers more idiomatic)
2024-07-04 16:18:26 -04:00
a930fc00d4
last cleanup for this dev pass
2024-07-02 10:34:36 -04:00
0f4ad9bdd1
cleanup
2024-07-02 01:42:32 -04:00
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
70b2d1fe55
Prepping to start getting freetype working (2)
2024-07-01 20:32:44 -04:00
b409063906
got harfbuzz working (need to fixup the text size measuring)
2024-07-01 19:37:29 -04:00
baa8024278
adjustments to to segregate the demo sections better
2024-07-01 18:09:15 -04:00
7c64e20f9c
missing changes
2024-07-01 17:43:41 -04:00
6d4745700f
Finished initial implementation of sokol demo
2024-07-01 17:39:00 -04:00
51ddb5371b
updates to sokol_demo & sokol backend
2024-07-01 12:24:20 -04:00
26974d6de0
sokol demo works
...
Just need to port over the original implementation now
2024-07-01 02:22:41 -04:00
60e90484de
compile fixes, forcing a rename to lowercase
2024-07-01 00:53:19 -04:00
4e800b9a72
for lib folder to lowercase dir name
2024-06-30 22:04:58 -04:00
1f8e411172
initial draft for sokol_demo.odin (untested)
2024-06-30 22:03:42 -04:00