Closed Habbie closed 1 week ago
I filed https://github.com/Templarian/MaterialDesign-Webfont/issues/99 to get .json
instead of .scss
but it's not a deal breaker :)
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.
ready for review. tested on toon1.
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
.