I’m using Scaleform and a shared font library. I think I set everything up correctly. All of the English and Japanese glyphs show up in the game. My problem is that a lot of the Chinese glyphs are missing, even though the font appears to have those glyphs, and I seem to be exporting/importing all of the glyphs.
- When I copy/paste some Chinese text into Animate, into a text box with my desired font (embedded or not, it shows up the same because it’s static text), and then run the Scaleform launcher, all of the Chinese text displays correctly. This tells me that the font has all of the necessary Chinese glyphs.
- The next step is embedding all of the necessary fonts with their glyphs in gfxfontlib.swf. In gfxfontlib.fla, in the Font Properties window, I make sure to embed “All” for the character range. And for good measure, I check all of the other checkboxes too. Then I save and export the file as gfxfontlib.swf. Then in my menu fla, I import the font, and once again I go into the Font Properties window and check “All” and just to be doubly sure, I check all of the other boxes too.
- Because you can’t test swf files with font sharing in the Scaleform launcher, I have to trust that everything is working well at that point.
- When I start my game, I change the language to English, and all the glyphs are there. I change the language to Japanese, and all the glyphs are there. I change the language to Chinese, and about 2/3 of the glyphs are there. They were all there in step 1, so I don’t think it’s a problem with the font not having the glyphs. I think there’s a problem with how the fonts get embedded or loaded.
Any ideas how to fix this?
I also tried experimenting with a different font. But I don’t see an easy way to change the font based on the game’s language. I thought it would be as easy as editing gfxui.chn to point to a different FontLib file that uses a different font. But that doesn’t seem to have any effect. I think all of the individual menu swfs already look for their fonts in the designated font library swf when they’re exported. Anyone know of a way to test with a different font without editing and reimporting all of my menu files?