CartoDB / mobile-carto-libs

Internal dependencies for CARTO Mobile SDK
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

[Question] what font formats are supported? #10

Closed farfromrefug closed 3 years ago

farfromrefug commented 3 years ago

Quick question do carto mobile sdk support woff or woff2 fonts? (i am looking at making my styles as small as possible). Woff font (montserrat) are around 10 times smaller!

mtehver commented 3 years ago

@farfromrefug I checked the changelog of FreeType and it seems that WOFF2 is supported only starting from FreeType 2.10.2. SDK uses FreeType 2.6.3, so WOFF2 is not supported ATM.

I did a quick test with the fonts Voyager style uses, WOFF2 fonts are 422KB vs 590KB zipped TTF fonts. So a substantial gain. I will try to merge the latest FreeType into the SDK.

mtehver commented 3 years ago

WOFF2 support is now included in 4.4.0RC1. Thus closing the issue.