voorkant / voorkant-core

https://voorkant.org/
MIT License
2 stars 3 forks source link

allow usage of Material Design mdi:foo names #130

Closed Habbie closed 1 week ago

Habbie commented 1 month ago

now we can autogenerate this file from something like ( echo '{' ; perl -pe 's/: ([0-9A-F]+)(,?)/: "$1"$2/' < scss/_variables.scss | grep '^ ' ; echo '}' ) | jq . (but I'd likely write a single Python script that goes all the way to the actual map syntax).

Would be nice to get rid of the item count that's now in both .cpp and .hpp, might be possible with something like what is done in frozen/examples/html_entities_map.cpp.

Habbie commented 2 weeks ago

I filed https://github.com/Templarian/MaterialDesign-Webfont/issues/99 to get .json instead of .scss but it's not a deal breaker :)

Habbie commented 1 week ago

I tried to use frozen but it needed 5GB of RAM to build the map, which is painful. Right now this PR instead constructs the map into memory, which works well, but obviously uses some RAM, which is a pity for entirely static data. The map appears to add 0.5M to the binary size, which is also a pity, but I don't have better ideas today.

Habbie commented 1 week ago

ready for review. tested on toon1.