# Font setup

[List of supported languages by Unity](https://docs.unity3d.com/ScriptReference/SystemLanguage.html)&#x20;

<br>

1. Copy file from /Resources/Localization/English.txt\
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdjXGpayxFowSfqQl9Qrwc874lrtmfrL8g7DnSVxnZqC4FvNXcBLpGzneTBffIs3gBsxmOdMRLlqcYRs-nGAMUmewp5xfEndlGTMHSERAM-1l1GXKOYBo3UidHb2-_pDkxierSXIFFvhnypV8Dr6JtcNA?key=XTV5tGF-nOd6z5zdwRp6jw)
2. Rename the copied file into a language you wish to translate\ <br>
3. Translate the content of the file keeping the line numbers, I have created the Russian.txt as an example\ <br>
4. You can find your new font [here](https://fonts.google.com/) or on another site. Make sure your font supports desired language. Then copy it into SweetSugar/Fonts\ <br>
5. Go to Window TextMeshPro->Font asset creator\
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXc6s2AXPzOEixCdFEKsd45L2ow9xAKX0jn_vlQiw1TqMQzRhCZHtrlkADleBniTLCb2BA6meRHN1OOchmwEIq_hKEIEXXqTw03EgRWxqDiwi9yXdRDjfLCn1SHb3BWkuj8a9veKq3VUkGZEXoavXYAzQw?key=XTV5tGF-nOd6z5zdwRp6jw)
6. Select your font
7. In Character Set select Unicode Range (Hex)\ <br>
8. Check the Unicode table to find your language [here](https://symbl.cc/en/unicode/blocks/)
9. In the site, for example, I selected Cyrillic characters\
   ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeOODEJwOs3JtjAI4ZTlcdKlHjXOPb5HIE9O4Cv5nDm620mXbbOaYNlz5A-MX7VTDXudyLMmuKq6MLXVKDVEeRAvZ0s5sqGNMrE9E-lfNu_3ghSvjp6C4M31TLQqcWHVue_9WmljhPcIofFscB4Y4azfkM?key=XTV5tGF-nOd6z5zdwRp6jw)
10. Set the range into Character Sequence (Hex) of the Font Asset Creator. (don’t copy it from the site to avoid wrong symbols, just type it)
11. Press Generate Font Altas and Save it into the project, use a different name than font name\
    ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfgXqMmnB7xA-TgTxNxDbtb93M7_8YjuR9QKLBbLY2nGK9HkhkT05WH91zmHzEL-a3woGL-MGxAsTqrCYVazuSwN6h2Xh7He_yUI1rGYZNuvtGuMhClTu93c351pg52lIZgWbbX2L1LYxCg2b2LEuPspY4?key=XTV5tGF-nOd6z5zdwRp6jw)
12. In the Project window select SweetSugar/TextMesh Pro/Resources/TMP Settings\
    ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfdvN6YBwSZWd5QBUhZ5qBzvyYHMa4-Y-wv9UxuiFz2f97HTa7DE4etQWE2Ts56EdHTMTjAjq5wNn1W2YuxWftmsoQDE4L6A6c7b-NJ2DJHUmYDMNcyBecSwJHUzMFxzsBNXrghy9qFSe4P_9pT1qMdNkM?key=XTV5tGF-nOd6z5zdwRp6jw)
13. Add your created Font Asset in Fallback Font Assets list\
    ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfb0jIg9Ggb44gsYiFV9wnmltNfVDkngDhsliTxUq142K2_ga04ECqdc4bDtKY_XL-EEKhpJAmthZRcvPYPkROQik4Zkrg4d7pDzQe0ppAH-I6P2ffFQ0vl7CoX2fDEnSvjId12Ofk1G1-_0e6VScAuiA?key=XTV5tGF-nOd6z5zdwRp6jw)\ <br>
14. To test the language in Unity go to menu Resources/Settings/Debug settings, select Test language\
    ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXd8KgXRQJhNaIU83wv_9QRGRDdysYCfVxZKcCsTY8zOklqWGGBqki4fIUPBKrmKfa7tcnRCs2sG4wTg6YWl3b1J1ojjH7G8DYMa4nzy410VPt6aH7FqAXE0lKD4-xxKGQNFTBiq8W9dhSVF29-xNO65P60?key=XTV5tGF-nOd6z5zdwRp6jw)

You can add your text in the English.txt file, but don’t change indexes. Only text. If you wish to add your new line - add it to the end of the file with a new index


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.candy-smith.com/main/general-info/localization/font-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
