---
description: Adding support for other languages in tooltips
---

# Languages

{% hint style="info" %}
Requires version **1.6+**
{% endhint %}



### Setup

1. Download `legacy.zip`

{% file src="https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2FLqNX3BMQxQuLIAMasUyN%2Flegacy.zip?alt=media&token=b903e170-210d-4c94-aa86-6d2c69a6694e" %}

2. Go into `plugins/Tooltips/.data/schemas`
3. Move all the contents of `legacy.zip` into the `schemas` folder

What we just did, was add ALL possible unicodes into our schemas. This includes all [CJK characters](https://en.wikipedia.org/wiki/CJK_characters) and many other missing unicodes from the default game. The problem with adding everything, is that the resource packs size has just grown to **5mb+**!

Why has the size grown so much? Because each line in Tooltips has to use a separate font to control the vertical height at which it is shown. Each line has to contain every single unicode from the ones we just added. Plus there are a lot of textures for these characters to be shown, which also takes a lot of space.

But there is a solution! Your tooltips most of the time do not need ALL the possible characters, which means that we can remove the redundant ones and reduce our resource pack size.



### Removing extra fonts

First, determine which languages you need. This could be for example just Chinese, Japanese or Korean. Next go [here](https://unifoundry.com/pub/unifont/unifont-15.0.06/unifont-15.0.06.bmp). As you can see, it's a giant sheet which contains all the unicodes. If you zoom in, on the left you can see the index.&#x20;

<figure><img src="https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2FObkXV3e3Z57y1Enb8S53%2Fimage.png?alt=media&#x26;token=a477432a-95fd-4a67-916a-beeed1a9db58" alt=""><figcaption></figcaption></figure>

Find the start and ending index of the characters you want to be included. For the above image for example, to include accented and cyrillic characters you would need indexes starting at **01** and ending at **05**.

After you have the range, go into your `legacy-fonts.yml` which should be located by now in `plugins/Tooltips/.data/schemas`. In there, you can see lots of providers that have names

<figure><img src="https://2056457066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FO0fJVi4OrBJoOYrP9n9t%2Fuploads%2F36l0Z91U0wXfAx8GFcFk%2Fimage.png?alt=media&#x26;token=324ddedc-0068-49fd-ad56-b4021a5df4e3" alt="" width="563"><figcaption></figcaption></figure>

Inside it, select and remove all providers that are not within your needed indexes. For example if we use the above indexes **01** and **05**, I would just need to remove all providers under `unicode_page_05`.

After that's done, [clear the cache](clearing-cache) and your Tooltips plugin should be able to support other fonts!



### <mark style="color:red;">Important!</mark>

With some languages, there may be issues in the tooltips width (text is offset). In order to fix that, follow the [Manual width guide](manual-width).

