Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Create small font file from large font file

Discussion in 'Editor & General Support' started by The-Little-Guy, Oct 30, 2017.

  1. The-Little-Guy

    The-Little-Guy

    Joined:
    Aug 1, 2012
    Posts:
    297
    I am making a WebGL game, and I would like to support multiple languages, however, the font files are around 100mb - 150mb per language. I have 4 languages I need to support:
    • Simplified Chinese
    • Traditional Chinese
    • Korean
    • Japanese
    • Russian (Seems to be supported naturally)
    If I were to build these into my game my WebGL build will be around 400mb - 500mb. That is way too much for a web game. So, is there a way to take these fonts and create a font file that uses just the glyphs that I need for the game?
     
  2. Moonjump

    Moonjump

    Joined:
    Apr 15, 2010
    Posts:
    2,572
    They seem like very big font files. You should be able to find a unicode font that supports all those languages in one file, and with much smaller sizes. A look at Google Noto shows fonts of less than 1MB.
     
  3. The-Little-Guy

    The-Little-Guy

    Joined:
    Aug 1, 2012
    Posts:
    297
    There may be fonts that are less than 1mb, but chinese is still 100mb