Dawn/IDEA.md

7 lines
541 B
Markdown

- Make font measure take in a pointer to a primitive to offer auto buffering of verts
- Make a clone of the string into font measure pointing only to real chars?
- How to do text wrapping efficiently?
- Two pointers, one for current char and one for the last known text position.
- Start by measuring whole string, this will give me n chars and let me know straight away if text fits
- Half divide the pointer to try and find the mid point and figure out if I should go up or down, keep halfing until finding the below then iterate up