#1 Oct 28, 2008 6:39 am

Plizzo
Moderator
From: Sweden
Joined: Feb 5, 2008
Website

How to port a font for the iPhone OS!

This is a step by step tutorial on how to port a font to the iPhone OS.

You will need the following tools:

    •    FontLab Studio

This will be the only tool we will need. You can get it here.

---------------------------------------------------------

Okay, now lets continue with the tutorial.

To be able to port fonts over you will need the standard fonts from the iPhone. You can either fetch them yourself via SSH by going into:

    ▪    /System/Library/Fonts/Cache/

The needed files are:

    ▪    Helvetica.ttf
    ▪    HelveticaBold.ttf
    ▪    LockClock.ttf
    ▪    MarkerFeltThin.ttf
    ▪    MarkerFeltWide.ttf

The second option would be to use the files I already fetched from my phone.
They can be found here: http://dznr.org/n54s

The steps provided will be the same even if you are porting a system, clock or a notes font.

Now lets assume we will be porting over Verdana for the iPhone

1. Open up the standard Helvetica and HelveticaBold from the iPhone, use either your own or the ones I provided. The font window should look something like this:

http://i37.photobucket.com/albums/e55/Plizzo/Font%20porting/HelveticaWindow.png

2. Now open the font you want to port over to the iPhone with FontLab Studio aswell. Now, this is the most important part. Press Command + A to select all the glyphs and then press Command + ALT + F. This will bring up the Font Info window. You will have menubar at the left side of the window. Now go into Metrics and Dimensions. The window should look like this:

http://i37.photobucket.com/albums/e55/Plizzo/Font%20porting/MetricsandDimensions.png

3. This is the part where we make the font ready for the phone. As you can see verdana has an UPM of 2048 and in iPhone OS 3.0 2048 is the needed value aswell. If the font had an UPM lower than 2048 before the font then make sure the following checkbox is activated but if the font is already 2048 make sure the checkbox is unchecked and continue.

"Scale all glyphs according to UPM size change"

4. Now we are back at the glyph map again. If all the glyphs are still selected then press the command Command + C to copy the glyphs.

5. Now, go back to the iPhone standard font, Helvetica and select all glyphs using Command + A. When your table goes green you press Command + Alt + V, this is the command "Paste Special". A little window should popup, mark the checkboxes as the image below shows.

http://i37.photobucket.com/albums/e55/Plizzo/Font%20porting/PasteSpecial.png

6. You should now be noticing some changes. The former glyphs have now been replaced with the glyphs from the font you want to port. In this case, Verdana.

7. Something you should look out for is that sometimes when you paste the new glyphs the CF25 glyph disappears. The CF25 is the little dot used when writing passwords etc. If this glyph is not present there will just be a blank box. Best thing to do is to use the command Command + F. The window that pops up should be set like this to be able to find just that glyph:

http://i37.photobucket.com/albums/e55/Plizzo/Font%20porting/FindGlyph.png

If the glyph is there you can continue with saving your project by going under File > Save As. This is just for safety. First time porting a font often takes some practice and it's not nice if the program crashes and you have to redo it all. If the glyph isn't present you will have to open up any font and look up that glyph and follow the guide but for just that glyph. You easily mark the glyph alone by just single clicking it. When you saved your project press Command + Alt + F to bring up the Font info once again. Double check the Metrics and Dimensions so that it is still set to 2048 with the scaling checkbox unchecked.

8. Once you one this you can go on and generate your font by pressing Command + ALT + G. Be sure to still have the font named Helvetica even though this can be changed afterwards. Save the file where you want to, the files name should match the name in the screenshot below.

http://i37.photobucket.com/albums/e55/Plizzo/Font%20porting/GenerateFont.png

9. If you are going to port a system font just like we did now you need to port bort the font to both Helvetica.ttf and HelveticaBold.ttf otherwise you will have different fonts in your system. The procedure is the same to port the other font.

9. If everything passed by as normal then your font is ready to be used on the iPhone. Put the font in: /System/Library/Fonts/Cache/
Be sure to make a backup of the old files. The best way to do that is to add .org to the old files extension. Then you can just drop it in. To get the font to show correctly you willl have to restart SpringBoard.

Credits to:

Guarav Giri - The one who first learned me how to port a font through his tutorial and gave me support.

Guarav's Guide:
http://blog.gauravgiri.com/2008/08/tuto … to-iphone/

---------------------------------------------------
For the people experiencing the 99% error:
Save your exisiting project font and then restart FontLab. Now you can open up the project again and save successfully. This is a bug with FontLab 5.0.2 and Mac OS Leopard.

Enjoy!

Last edited by Plizzo (Oct 30, 2008 4:33 pm)

Offline

 

#2 Oct 28, 2008 6:48 am

Alistair
Member
From: UK
Joined: Jun 3, 2008
Website

Re: How to port a font for the iPhone OS!

Wow! Thanks Plizzo smile_thumbup

Offline

 

#3 Oct 28, 2008 8:15 am

Jinklebelle
Member
From: Bangkok
Joined: May 26, 2008

Re: How to port a font for the iPhone OS!

Thanks Plizzo. Now I could make one for myself:D

Offline

 

#4 Oct 28, 2008 8:17 am

Hiratai
Banned
Joined: Dec 2, 2007

Re: How to port a font for the iPhone OS!

I'll port the NeutraFace fonts when I get back home.

Offline

 

#5 Oct 28, 2008 2:43 pm

CompC
Member
From: Orlando, FL
Joined: Aug 6, 2005
Website

Re: How to port a font for the iPhone OS!

I did a few, but in every one the bold font is cut off along the top in some places.

Offline

 

#6 Oct 28, 2008 3:00 pm

netuser
Member
From: Paris - France
Joined: Aug 7, 2008

Re: How to port a font for the iPhone OS!

your Only needed software cost 649 USD it is mre expnesive taht iphone it self   . How can one afford such software just to have a different font on iphone hmm   

There is no Freeware or cheap solution ?

Last edited by netuser (Oct 28, 2008 4:03 pm)

Offline

 

#7 Oct 28, 2008 3:36 pm

Hiratai
Banned
Joined: Dec 2, 2007

Re: How to port a font for the iPhone OS!

Become a pirate?

Offline

 

#8 Oct 28, 2008 4:01 pm

CompC
Member
From: Orlando, FL
Joined: Aug 6, 2005
Website

Re: How to port a font for the iPhone OS!

I'd edit that post if you don't want to be banned.

Offline

 

#9 Oct 28, 2008 5:23 pm

Plizzo
Moderator
From: Sweden
Joined: Feb 5, 2008
Website

Re: How to port a font for the iPhone OS!

Hiratai, please dont advertise piracy. It will get you banned aswell as the people who spin along the subject.

Offline

 

#10 Oct 30, 2008 4:33 pm

Plizzo
Moderator
From: Sweden
Joined: Feb 5, 2008
Website

Re: How to port a font for the iPhone OS!

I posted the fix for the 99% error in the thread. smile

Offline

 

#11 Nov 1, 2008 5:06 am

purpleparrotuk
Member
Joined: Oct 20, 2008

Re: How to port a font for the iPhone OS!

Thanks for the tutorial.

How do you move the clock font down if it is underneath the status bar?

Offline

 

#12 Nov 1, 2008 5:42 am

purpleparrotuk
Member
Joined: Oct 20, 2008

Re: How to port a font for the iPhone OS!

purpleparrotuk wrote:

Thanks for the tutorial.

How do you move the clock font down if it is underneath the status bar?

Its ok, I found the shift option smile

Offline

 

#13 Nov 1, 2008 1:46 pm

michael180
Member
From: Santa Cruz, California
Joined: Apr 4, 2008
Website

Re: How to port a font for the iPhone OS!

CompC wrote:

I did a few, but in every one the bold font is cut off along the top in some places.

Can you do anything with the Demo?

Offline

 

#14 Nov 1, 2008 2:37 pm

Plizzo
Moderator
From: Sweden
Joined: Feb 5, 2008
Website

Re: How to port a font for the iPhone OS!

Maybe he doesn't have the Demo tongue

Offline

 

#15 Nov 1, 2008 9:04 pm

CompC
Member
From: Orlando, FL
Joined: Aug 6, 2005
Website

Re: How to port a font for the iPhone OS!

And I fixed my problem.

This makes a great font for me: my handwriting! www.yourfonts.com
I guess you don't want MY handwriting. If anyone does, I guess I could post it. tongue

Offline

 

#16 Dec 13, 2008 1:24 pm

tipii
Moderator
From: East Coast
Joined: Apr 28, 2008
Website

Re: How to port a font for the iPhone OS!

Everytime i go to generate font. It crashes at 99% smile_worried

EDIT: Wow i need to read edits more often lol

For the people experiencing the 99% error:
Save your exisiting project font and then restart FontLab. Now you can open up the project again and save successfully. This is a bug with FontLab 5.0.2 and Mac OS Leopard.

Last edited by tipii (Dec 13, 2008 1:49 pm)

Offline

 

#17 Dec 14, 2008 5:42 pm

Lucas Design
Member
From: U.S.
Joined: Aug 30, 2008
Website

Re: How to port a font for the iPhone OS!

I dont know if anyone pointed this out yet, but if you port a font that doesnt support your set language, such as English for me, the iPhone cant read the font so it doesnt appear at all. Whats weird is that it totally kills SpringBoard. You cant launch any app, so If you have SSH turned on you have to replace the font with the stock one.

Just saying what happened to me a few min ago haha. Was just bout to re-pwn hmm

Also had this same issue on 5.0.2:

tipii wrote:

Everytime i go to generate font. It crashes at 99% smile_worried

EDIT: Wow i need to read edits more often lol

For the people experiencing the 99% error:
Save your exisiting project font and then restart FontLab. Now you can open up the project again and save successfully. This is a bug with FontLab 5.0.2 and Mac OS Leopard.

Last edited by ilucas (Dec 14, 2008 5:43 pm)

Offline

 

#18 Dec 14, 2008 11:34 pm

Lucas Design
Member
From: U.S.
Joined: Aug 30, 2008
Website

Re: How to port a font for the iPhone OS!

Yea um another bump, sorry.

Just pointing out another thing, dont put fonts that arnt ported onto the iPhone, im restoring right now hmm

Offline

 

#19 Dec 15, 2008 12:45 am

Plizzo
Moderator
From: Sweden
Joined: Feb 5, 2008
Website

Re: How to port a font for the iPhone OS!

iLucas, that's just plain stupid. That's why I wrote this guide wink

Offline

 

#20 Dec 26, 2008 1:34 pm

spittips101
Member
From: Mission Viejo, CA
Joined: Nov 24, 2008

Re: How to port a font for the iPhone OS!

this works PERFECT. thanks so much. but can i put these into the fontswap.app and have many fonts to choose?

Offline

 

#21 Dec 26, 2008 10:08 pm

aphex
Member
From: Sarasota, FL
Joined: Nov 20, 2008

Re: How to port a font for the iPhone OS!

Any tips on how to re-size a font?

Offline

 

#22 Jan 3, 2009 5:38 pm

TranceGraphics
Member
Joined: Jun 7, 2008

Re: How to port a font for the iPhone OS!

i tried this and this is the result i got :
http://i41.tinypic.com/1687qkm.jpg

the font sizing was all correct and i followed the instructions in this tutorial

do you know what could be wrong, btw the fonts i am trying to port are:
NeutraText Bold.otf
NeutraText Book.otf

Cheers

Last edited by TranceGraphics (Jan 3, 2009 5:42 pm)

Offline

 

#23 Jan 4, 2009 2:28 pm

Plizzo
Moderator
From: Sweden
Joined: Feb 5, 2008
Website

Re: How to port a font for the iPhone OS!

TranceGraphics, refer to this post on how to fix this:

http://macthemes2.net/forum/viewtopic.p … 57#p388157

Offline

 

#24 Jan 6, 2009 10:56 pm

Larkef
Member
From: Rotterdam
Joined: Jan 3, 2009
Website

Re: How to port a font for the iPhone OS!

Plizzo wrote:

Maybe he doesn't have the Demo tongue

The demo is actually quite useless, as it only let you save 20 glyphs...

Anyhow, cheers for the great tut!

Offline

 

#25 Jan 11, 2009 9:55 pm

djbrotherson
Member
Joined: Sep 30, 2008
Website

Re: How to port a font for the iPhone OS!

Hmmmm... I wonder if Bankgothic or century gothic would work... I tried a font from a xsellize repository on cydia that was Bankgothic and the letters were just too big...

Offline

 

Board footer