Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: danilofaria on February 24, 2016, 10:15:01 PM
-
I was not able to create a new font atlas on my Mac, because NGUI is missing a file called NGUI/Editor/FreeType64.dylib.
Then I tried doing it on a windows computer and it also failed to create a font atlas, got some error message when creating the font atlas.
I've wasted half a day trying to create a font atlas and just getting errors.
Any help would be appreciated.
-
"some error message" doesn't let me help you, you will need to elaborate. Font creation works as expected on Windows as far as I'm aware.
-
Hello,
I didn't have the error message with me because I did it in a windows computer that I had borrowed from someone. I borrowed it again and the message was:
Unable to use the chosen font (FT_New_Face).
UnityEngine.Debug:LogError(Object)
FreeType:GetFaces(Font) (at Assets/NGUI/Scripts/Editor/FreeType.cs:440)
UIFontMaker:OnGUI() (at Assets/NGUI/Scripts/Editor/UIFontMaker.cs:221)
UnityEditor.DockArea:OnGUI()
Let me know if there is a solution for that. Also let me know if there is a way to do it on the mac.
Thanks.
-
What font are you trying to use? It needs to be an actual TTF font residing inside your assets. It can't be a built-in Unity font.
-
I was using TTF fonts that I had imported into my project. Fonts from 1001freefonts.com, for example Open Sans (http://www.1001freefonts.com/open_sans.font).
I tried many of them, but none worked. I kept on getting that error message.
Thanks.
-
What version of Unity are you using? 64 or 32 bit? The compiled library is for 64-bit by default.
-
It was 64-bit.
-
Try replacing the 3 attached files in NGUI/Scripts/Editor.
-
Hello,
I tried again after replacing the files you attached, but got the following error:
Unable to use the chosen font (FT_New_Face).
UnityEngine.Debug:LogError(Object)
FreeType:GetFaces(Font) (at Assets/NGUI/Scripts/Editor/FreeType.cs:435)
UIFontMaker:OnGUI() (at Assets/NGUI/Scripts/Editor/UIFontMaker.cs:217)
UnityEditor.DockArea:OnGUI()
I tried it with different fonts, including the one I showed you in an earlier message (open sans).
Thanks
-
I don't know what to say then, as it's working perfectly fine on my end over here. If you email your OR# to support [at] tasharen.com I can try sending you a packaged up Pro package with all the latest changes to see if that will help, but that's about all I can offer.
-
We could try that. What do you mean by OR# though?
Also, are there any other ways I could go about to create font atlases to use with NGUI?
-
OR# = Order number, you get it when you buy from the Asset Store. You can still create a font using BMFont if you prefer -- I am sure there are old tutorials around still.