Search Unity

Question Streaming font asset from Google fonts

Discussion in 'Web' started by manundi, Jan 4, 2021.

  1. manundi

    manundi

    Joined:
    Jun 30, 2019
    Posts:
    14
    Hello!

    My WebGl games are educational and rely on text. My webUI where text input is happening can handle any languages I have tried and so my database can have Arabic, Japanese etc text strings. My Co needs to have WebGl game size optimized hard. We have succeeded to make very small games (8mb).

    Problem: When adding a language font for example Japanese font asset, the build size grows significantly. Japanese font alone can take 4mb space from the build.

    My idea is to stream the font files from Google fonts api like the websites are doing. Is this possible?

    Using TMP on all texts.