Recent searches
No recent searches
Zendesk Unity SDK - Mandatory fonts add ~20-30mb to the app size
Posted Aug 08, 2024
The Zendesk Unity SDK adds approximately 30 MB to the application size due to the mandatory fonts included in the plugin.
We need a way to provide our own fonts from the project since we already support all the required languages. Many projects cannot accommodate this kind of overhead with 30 MB of unnecessary fonts.
Our current approach is to copy the package locally and remove all fallback fonts from the provided font asset. Of course, this will lead to losing support for hieroglyph characters, but it reduces the size to only about 1-2 MB using the dynamic Roboto font.
Another approach would be to change all references of TextMeshProUGUI fonts in the prefabs located under the Resource folder to our own fonts. However, this approach is not ideal for us because Zendesk is integrated as an additional module to our core plugin, which then goes to all other projects, and each project may have its own font.
Ideally, it should work with Zendesk as a plugin by creating a few variants of prefabs with the required changes (such as changing the font) on the project side (thus, no Resource folder inside the plugin). Currently, there are many prefabs, and it would be a real pain to create their variants and change references in ScriptableObjects and other prefabs.
2
0 comments