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
This commit is contained in:
2024-12-29 18:27:46 -05:00
parent 55a4c3dee6
commit 90ca01bdaa
8 changed files with 177 additions and 91 deletions

View File

@@ -33,6 +33,7 @@ import "core:mem"
Arena :: mem.Arena
arena_allocator :: mem.arena_allocator
arena_init :: mem.arena_init
import "core:slice"
//#region("Proc overload mappings")
@@ -58,6 +59,7 @@ ceil :: proc {
clear :: proc {
clear_dynamic_array,
clear_map,
}
floor :: proc {
@@ -74,6 +76,10 @@ floor :: proc {
floor_vec2,
}
fill :: proc {
slice.fill,
}
make :: proc {
make_dynamic_array,
make_dynamic_array_len,