UGUIDOTS
UGUIDOTS copied to clipboard
Consider using blob assets to store font glyph information
Use a BlobAsset to store Font Glyphs. Font Glyphs are known at edit time and are predetermined by the designer or dev.
Instead of converting and parsing it to a dynamic buffer in runtime - it might be worth changing this to a blob asset binary file and just load it to RAM.
Old issue, but I think the problem with using a blob asset versus what I have now with DynamicBuffers is I have a O(n^2) look up (e.g. for each char loop and find the glyph). Maybe a better way is to effectively create my own hashmap using dynamic buffers. Map a character to an index so we can fetch it in O(1) access time.