Font Asset Creator stuck at "Packing glyphs - Pass 8"

To grant some context into perspective, I’m just done with massive s—storm of bugs, I wanted to resolve some bugs, deleted wrong things, tried to upgrade it to newer version of Unity, that created its own bugs, finally solved it, to find my entire project was thrashed by forces yet unknown.

My first target to solve is TextMeshProUGUI disappearing, after some investigation I found out, it’s because the SDF file was either empty or couldn’t be loaded. I decided to delete all of the rendered SDFs (about eight of them) and decided to render them anew. I took typical steps, Window > Text Mesh Pro > Font Asset Creator, I put a font in it, pressed the “Generate Font Atlas” button and it gets stuck at this screen:

I did check whether the fonts were uncorrupted, and Windows opened them without any issue. I tried both OTF and TTF fonts, the “Save” and “Save As…” buttons are disabled and clicking them does nothing. I even tried making SDF from Arial font, that gets stuck as well.

Unity version: 2019.3.0f5.
TextMeshPro version: 2.0.1 [2019.3 verified]

Edit: The included font “Liberation Sans SDF” does render a text, so the package can use SDFs and render them in scene, just not create them.

I think i have same problem. Some text are flickering.

1 Like

It turns out you can just uninstall the package, and download TextMeshPro as asset from Unity store. It works then.

The version of TextMesh Pro available on the Asset Store is a Legacy version that is very old and should not longer be used with Unity 2018.3 or newer. The package manager version of TextMesh Pro should be used.

Can you provide a link to the font file that is exhibiting this behavior?

Can you share a screenshot of the settings used in the Font Asset Creator that results in this behavior?

???

I literally included screenshot displaying the entire Font Asset Creator window and told you that OTF/TTF fonts, including Arial (url: C:\Windows\Fonts\arial.ttf) won’t render. Everything you asked for is in the first post.

Just tested creating a font asset using the Font Asset Creator using Arial.ttf as well as other fonts and this is working as expected on my end. The challenge now is figuring out why you are getting a different behavior on your end.

Can you check the import settings on this Arial.ttf font in the Editor?

When I import this font in Unity this is what I get …

5398323--547776--upload_2020-1-22_13-1-31.png

If your settings match, can you see if you get the same behavior in a new / empty project using the latest package release of TMP for Unity 2019.x which is version 2.1.0-preview.3?

I had the same issue recently. As I found out, in my case the problem was caused by the script trying to call Debug.Log method from a worker thread (in script TMPro_FontAssetCreatorWindow). After I commented this line, the atlas was generated successfully.

Interesting and certainly makes sense.

Interestingly, I have probably generated 1000’s of font assets without ever running into this.

I just made the change to remove these Debug.Log from there current location to a more appropriate spot. This change will be in the next release of the TMP package.

Stephan, I had the same issue recently. Bump!