Significantly improved font code

This commit is contained in:
2021-05-24 20:56:50 -07:00
parent 402ebcf05f
commit 388d94cbcc
5 changed files with 71 additions and 104 deletions

View File

@@ -1,2 +1,7 @@
- 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?
- 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