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:

Image

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:

Image

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.

Image

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:

Image

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.

Image

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/tutorial-port-fonts-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 on October 31st, 2008, 12:33 am, edited 1 time in total.
Wow! Thanks Plizzo :thumbsup:
Thanks Plizzo. Now I could make one for myself:D
I'll port the NeutraFace fonts when I get back home.
I did a few, but in every one the bold font is cut off along the top in some places.
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 :/

There is no Freeware or cheap solution ?
Last edited by netuser on October 29th, 2008, 12:03 am, edited 1 time in total.
Become a pirate?
I'd edit that post if you don't want to be banned.
Hiratai, please dont advertise piracy. It will get you banned aswell as the people who spin along the subject.
I posted the fix for the 99% error in the thread. :)
Thanks for the tutorial.

How do you move the clock font down if it is underneath the status bar?
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 :)
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?
Maybe he doesn't have the Demo :P
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. :P
Everytime i go to generate font. It crashes at 99% :-!

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 on December 13th, 2008, 10:49 pm, edited 1 time in total.
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 :/

Also had this same issue on 5.0.2:

tipii wrote:Everytime i go to generate font. It crashes at 99% :-!

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 Lucas Design on December 15th, 2008, 2:43 am, edited 1 time in total.
Yea um another bump, sorry.

Just pointing out another thing, dont put fonts that arnt ported onto the iPhone, im restoring right now :/
iLucas, that's just plain stupid. That's why I wrote this guide ;)
this works PERFECT. thanks so much. but can i put these into the fontswap.app and have many fonts to choose?
Any tips on how to re-size a font?
i tried this and this is the result i got :
Image

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 on January 4th, 2009, 2:42 am, edited 1 time in total.
TranceGraphics, refer to this post on how to fix this:

http://macthemes2.net/forum/viewtopic.p ... 57#p388157
Plizzo wrote:Maybe he doesn't have the Demo :P

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

Anyhow, cheers for the great tut!
great tutorial but a shame that i don't have fontlab or fontographer. To obtain the software i could
Hiratai wrote:Become a pirate?

but thats not aloud here so could anyone possibly port a font for me??????????

i would like this font, comfortaa.
if anyone does then you could pm it to me and then i would be forever in debt to you.