UE4.3 crashed importing font?

Hi, when I reimporting a chinese font use 40962048 or 40964096 resolution, Unreal will crash.
How to import a heigh resolution font into Unreal Engine?

Here is the crash code:

!Id:edbda434305a8b23bf98b6fc6daf5d14

Unknown exception - code 00000001
(first/second chance not available)

Assertion failed: (Index >= 0) &
(Index < ArrayNum)
[File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.3\Engine\Source\Runtime\Core\Public\Containers\Array.h]
[Line: 536] Array index out of bounds:
0 from an array of size

KERNELBASE + 100812 bytes
UE4Editor_Core + 3009507 bytes
UE4Editor_Core + 1775850 bytes
UE4Editor_Core + 1703584 bytes
UE4Editor_UnrealEd + 7792414 bytes
UE4Editor_UnrealEd + 7788349 bytes
UE4Editor_UnrealEd + 7887350 bytes
UE4Editor_UnrealEd + 7862404 bytes
UE4Editor_UnrealEd + 7939797 bytes
UE4Editor_UnrealEd + 7911128 bytes
UE4Editor_UnrealEd + 1471515 bytes
UE4Editor_UnrealEd + 9462792 bytes
UE4Editor_UnrealEd + 9403242 bytes
UE4Editor_Slate + 1176761 bytes
UE4Editor_Slate + 1196600 bytes
UE4Editor_Slate + 1074844 bytes
UE4Editor_Slate + 2557978 bytes
UE4Editor_Slate + 2689353 bytes
UE4Editor_Slate + 653625 bytes
UE4Editor_Slate + 612793 bytes
UE4Editor_Core + 2986717 bytes
UE4Editor_Core + 2919937 bytes
UE4Editor_Core + 2991007 bytes
UE4Editor_Core + 2908962 bytes user32

  • 5918 bytes user32 + 5335 bytes UE4Editor_Core + 2992022 bytes
    UE4Editor!FEngineLoop::Tick() + 2990
    bytes
    [d:\buildfarm\buildmachine_++depot+ue4-releases+4.3\engine\source\runtime\launch\private\launchengineloop.cpp:2066]
    UE4Editor!GuardedMain() + 476 bytes
    [d:\buildfarm\buildmachine_++depot+ue4-releases+4.3\engine\source\runtime\launch\private\launch.cpp:133]
    UE4Editor!GuardedMainWrapper() + 26
    bytes
    [d:\buildfarm\buildmachine_++depot+ue4-releases+4.3\engine\source\runtime\launch\private\windows\launchwindows.cpp:125]
    UE4Editor!WinMain() + 249 bytes
    [d:\buildfarm\buildmachine_++depot+ue4-releases+4.3\engine\source\runtime\launch\private\windows\launchwindows.cpp:207]
    UE4Editor!__tmainCRTStartup() + 329
    bytes
    [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]

Hello alonezhby,

We are sorry to hear you are experiencing this crash. We have updated the engine with a lot of great improvements and fixes. Version 4.6 is the current newest release. Try updating your project using the newest version of the engine and see if that fixes your font import issue.

If you are still experiencing the problem, let us know and we can assist you further.

Thanks,

Hi, 4.7.2 still crashed.

seems TextRenderActor does not support “Runtime” cached font…

I want to use TextRenderActor to display Chinese font, how?

Hey alonezhby,

I found a post that deals exactly with the issue you are attempting to solve. The answer was accepted on the post and has been up-voted a number times, so we can assume the directions and end result are the expected.

How to Import and Use Custom Fonts

Cheers,

Andrew,
Thank you.

I have read it before. Chinese font not work so well.
I have did some tests:

  1. If checked “Use Distance Field Alpha” and set “Distance Field Scale Factor” value higher than 8, the editor will crash.
  2. Seems the Texture Page Width and Height parameters can’t allow to change free, sometimes can set to 20482048, sometimes only 20481024(Is there some rules on this two parameters?).

So I can’t import too many characters into one texture page.
btw, is there a way to use BMFont software generated texture in UE4?

Hey alonezhby,

It seems your font may be too large at the default value upon import. Generally you want to make the initial import at a moderate point size, like 20 - 24 or something, to keep the number of font pages down.

Currently the documentation for importing and using custom fonts is a bit limited, and seems to work best with trial and error. The Tappy Bird sample uses custom fonts as a text render actor so perhaps you could reverse engineer their set up to see if you can gather any insight on certain limitations when using custom fonts.

As for the BMFont software, you might just need to experiment with this to see if it works for you. I am going to try and set up my own custom font and import it into the Engine using the same steps I provided to you. If I find anything worth noting that might help your situation, I will keep you informed.

Cheers,