Significantly improved font code
This commit is contained in:
7
IDEA.md
7
IDEA.md
@@ -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
|
Reference in New Issue
Block a user