some docs proofing

This commit is contained in:
2025-02-13 17:08:58 -05:00
parent eec58a30e2
commit 14791e532e
3 changed files with 16 additions and 4 deletions

View File

@@ -140,6 +140,18 @@ Does nothing when zoom is 1.0
Uses `resolve_draw_px_size` to constrain which font size is used for the zoom.
## resolve_px_scalar_size
Get the target pixel, font_scale, and scale for the given font pixel size, and scalar multiple to apply. (Normalized space with norm_scale)
To derived norm_scale use: get_normalized_position_scale or just do (scale * (1 / view))
This is used within:
* draw_shape_view_space
* draw_text_view_space
* draw_shape
* draw_text
### snap_normalized_position_to_view
Will snap the given position to the nearest pixel via ceil of the given view.