Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Consider using blob assets to store font glyph information #25

Open
psuong opened this issue Apr 7, 2020 · 1 comment
Open

Consider using blob assets to store font glyph information #25

psuong opened this issue Apr 7, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@psuong
Copy link
Member

psuong commented Apr 7, 2020

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.

@psuong psuong added enhancement New feature or request good first issue Good for newcomers labels Apr 7, 2020
@psuong psuong self-assigned this Apr 7, 2020
@psuong
Copy link
Member Author

psuong commented Jan 2, 2021

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.

@psuong psuong removed the good first issue Good for newcomers label Jan 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant