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
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.
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.
I have read it before. Chinese font not work so well.
I have did some tests:
If checked “Use Distance Field Alpha” and set “Distance Field Scale Factor” value higher than 8, the editor will crash.
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?
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.