Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Laralyn on March 21, 2015, 03:15:20 PM

Title: FreeType64.dylib for Font Maker in Unity 5 Mac?
Post by: Laralyn on March 21, 2015, 03:15:20 PM
I saw a few older threads talking about this missing file, but I don't see it posted anywhere. Is there somewhere I can download FreeType64.dylib or is there any update for NGUI on the way? Thanks!
Title: Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
Post by: ArenMook on March 22, 2015, 08:18:32 AM
You can download the FreeType library's source code here: http://www.freetype.org/

You should then be able to compile a x64 dylib with it. When compiled it will likely be called something like "libfreetype.6.dylib", so you will need to rename it to FreeType64.dylib before copying it to the expected folder (Assets\NGUI\Editor).

P.S. depending on your OSX version you may actually already have this library in your system. Try searching for "libfreetype" first.
Title: Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
Post by: glacius3000 on March 27, 2015, 09:50:08 AM
You can download the FreeType library's source code here: http://www.freetype.org/

You should then be able to compile a x64 dylib with it. When compiled it will likely be called something like "libfreetype.6.dylib", so you will need to rename it to FreeType64.dylib before copying it to the expected folder (Assets\NGUI\Editor).

P.S. depending on your OSX version you may actually already have this library in your system. Try searching for "libfreetype" first.

Hi,
I managed to build a 64-bit library (let me know if you want it). I've verified that it is just an x86_64 library by using the File command on it after I build it.

However, now, the font maker crashes now whenever I start it. I'm attaching a crash log.
One of the lines in the log is.
"Fallback handler could not load library /Applications/Unity/Unity.app/Contents/Frameworks/Mono/lib/libFreeType64.dylib"

I've tried renaming and pasting a copy of free type at that position above as well. However, it still crashes with a similar error.

Am i doing something wrong?
Title: Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
Post by: ArenMook on March 27, 2015, 11:11:55 PM
I honestly don't have enough knowledge of OSX to be of much use here...
Title: Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
Post by: turkenh on June 20, 2015, 06:26:37 PM
I honestly don't have enough knowledge of OSX to be of much use here...

I just want to compile FreeType64.dylib, but which version of FreeType is expected? Tried 2.6.0 and 2.5.5 but unity crashes with generated dylib files. I thought that I am compiling wrong version...
Title: Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
Post by: ArenMook on June 21, 2015, 08:09:16 PM
To be honest I'm not sure which version of Freetype that was... The 64 bit file is dated at the end of year 2010.
Title: Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
Post by: JumpDog on June 23, 2015, 07:08:02 PM
I've tried doing this myself with as far back as the Oct 2010 source files, and it still crashes for me as well, as soon as I select a font in Font Maker. I realize the last post was only 2 days ago, but has any progress on this been made? This is an extremely large issue.

Edit: Leopotam here on the forums shared a fix for some of the disappearing text in-editor, which was very helpful and one of my greater concerns. Is that missing/jumbled text issue prevalent in actual builds on devices as well?
Title: Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
Post by: ArenMook on June 25, 2015, 07:55:23 PM
I have not done anything. I work in Windows myself, and in Unity 4 still. While I'm able to compile 64 bit stuff on Windows, I am not able to do that with OSX.
Title: Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
Post by: Leopotam on July 01, 2015, 04:57:59 AM
Edit: Leopotam here on the forums shared a fix for some of the disappearing text in-editor, which was very helpful and one of my greater concerns. Is that missing/jumbled text issue prevalent in actual builds on devices as well?
It was only for editor font glitches, in runtime / on devices its already should work without issues.
Title: Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
Post by: ArenMook on July 02, 2015, 08:50:21 PM
Disappearing dynamic font work around was posted here: http://www.tasharen.com/forum/index.php?topic=13231.0

Pro version of NGUI already has it in.