Author Topic: FreeType64.dylib for Font Maker in Unity 5 Mac?  (Read 12604 times)

Laralyn

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
FreeType64.dylib for Font Maker in Unity 5 Mac?
« 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!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
« Reply #1 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.

glacius3000

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
« Reply #2 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
« Reply #3 on: March 27, 2015, 11:11:55 PM »
I honestly don't have enough knowledge of OSX to be of much use here...

turkenh

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
« Reply #4 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...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
« Reply #5 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.

JumpDog

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 13
    • View Profile
Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
« Reply #6 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?
« Last Edit: June 23, 2015, 07:21:35 PM by JumpDog »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
« Reply #7 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.

Leopotam

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 7
    • View Profile
Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
« Reply #8 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: FreeType64.dylib for Font Maker in Unity 5 Mac?
« Reply #9 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.