[Tutorial] Adding Extra Fonts to iPhone
by gaurav on Aug.31, 2008, under iPhone
continuing the posts about fonts.. here’s how you can add extra fonts to your iPhone for use with WinterBoard and maybe other applications as well..
Advantages of adding extra fonts:
- Set your SpringBoard icon labels to the font of your choice [through WinterBoard]
- Get extended font support for viewing websites in Safari
- Get extended font support in applications, either as a user or a developer
For this tutorial I will add the Calibri font family to my iPhone, the following fonts of this family should be available on your computer by default
- Calibri
- Calibri Italic
- Calibri Bold
- Calibri Bold Italic
[i'm doing this on a Windows Vista system, if you're not using Vista some steps for obtaining the fonts may be different]
Terms for this tutorial:
Font Family is the font class, a font family may have many similar fonts, these fonts have different names and slightly different styles. eg Arial, Helvetica, Calibri are font families
Font Name is the name given to a font eg. Calibri, Calibri Bold, Calibri Italic are fonts in the Calibri font family
Font File Name is the filename for the font file. eg. Calibri.ttf, CalibriBold.ttf
Note: changing the filename for a Font File *does not* change the Font Name for that file. i’ve seen many people tryin to get fonts to work by renaming the files. it simply won’t work because no matter how many times you change the filename, the metadata contained in the file remains the same. a Helvetica font is a Helvetica font whether it’s named Helvetica.ttf or Calibri.ttf
Copy the fonts:
- 1. Start > Run, or WinKey + R
- 2. Type fonts in the Run window that opens
- 3. Hit Enter
- 4. This will open the Fonts folder. alternatively you can open it through My Computer C:/Windows/Fonts/ [where C:/ is your windows drive]
- 5. Make a new folder Calibri on your Desktop
- 6. Find the Calibri fonts in the Fonts folder and select and drag them to the Calibri folder, or use copy/paste.
- 7. The fonts will have these file names
- Calibri: calibri.ttf
- Calibri Bold: calibrib.ttf
- Calibri Italic: calibrii.ttf
- Calibri Bold Italic: calibriz.ttf
- 8. Rename the font files to these names
- Calibri: Calibri.ttf
- Calibri Bold: CalibriBold.ttf
- Calibri Italic: CalibriItalic.ttf
- Calibri Bold Italic: CalibriBoldItalic.ttf
I prefer not to have spaces in the filenames that i’m going to put on my iPhone.
Install fonts on iPhone
- 1. Connect to your iPhone using WinSCP or Fugu via it’s IP address. username: root, password: alpine
- 2. Navigate to this folder /System/Library/Fonts/Cache/
- 3. Create a new folder MyFonts in the Cache folder
- 4. Copy the four files for Calibri font to the MyFonts folder
- 5. Navigate to the folder /System/Lobrary/Fonts/
- 6. Copy the file CGFontCache.plist to your desktop and use this link to convert it to plain xml format. http://140.124.181.188/~khchung/cgi-bin/plutil.cgi
- 7. Open the converted CGFontCache.plist file with your favorite text editor.
- 8. There are two sections in this file you need to edit Names and TraitMappings
- Names is an array which has key value pairs of the Font Name and the Font file name.
we’ll copy our new fonts in this folder so that they are easily identifiable and properly organized.
it has the following syntax
<key>Font Name</key> <string>Full Path to Font File</string>
in this section add these lines at the start
<key>Calibri</key> <string>/System/Library/Fonts/Cache/MyFonts/Calibri.ttf</string> <key>Calibri Bold</key> <string>/System/Library/Fonts/Cache/MyFonts/CalibriBold.ttf</string> <key>Calibri Italic</key> <string>/System/Library/Fonts/Cache/MyFonts/CalibriItalic.ttf</string> <key>Calibri Bold Italic</key> <string>/System/Library/Fonts/Cache/MyFonts/CalibriBoldItalic.ttf</string>
it has the following syntax
<key>Font Family Name</key> <dict> <key>Plain</key> <string>Font Name</string> <key>Bold</key> <string>Font Name</string> <key>Italic</key> <string>Font Name</string> <key>Bold-Italic</key> <string>Font Name</string> </dict>
Note: the four
in this section add these lines at the start
<key>Calibri</key> <dict> <key>Plain</key> <string>Calibri</string> <key>Bold</key> <string>Calibri Bold</string> <key>Italic</key> <string>Calibri Italic</string> <key>Bold-Italic</key> <string>Calibri Bold Italic</string> </dict>
the HTML page
<html>
<head>
<title>Calibri Test</title>
<style>
#calibri {
font-family: calibri;
font-style: normal;
}
#calibrii {
font-family: calibri;
font-style: italic;
}
#calibrib {
font-family: calibri;
font-weight: bold;
}
#calibriib {
font-family: calibri;
font-style: italic;
font-weight: bold;
}
</style>
</head>
<body>
<div id=calibri>Calibri</div>
<div id=calibrib>Calibri Bold</div>
<div id=calibrii>Calibri Italic</div>
<div id=calibriib>Calibri Bold Italic</div>
</body>
</html>
is rendered like this in MobileSafari
Before:

i hope you find this tutorial useful….
106 Comments for this entry
6 Trackbacks / Pingbacks for this entry
-
Doodle Jump apk
October 17th, 2011 on 3:40 pmDoodle Jump apk Hi there I favor your post, nice blog!…
Hi there I favor your post, nice blog!…
-
Seribu Pernak Pernik Ponsel Android
December 1st, 2011 on 2:12 pmSeribu Pernak Pernik Ponsel Android I am planning on buying this really awesome phone. But it is not an android phone. I want to know if I can download the android market into it maybe via a microsd card. Is this possible, if so how?…
I am planning on buying this really awesome phone. But it is not an android phone. I want to know if I can download the android market into it maybe via a microsd card. Is this possible, if so how?…
-
Adding new fonts by editing "CGFontCache.plist" not working?
December 16th, 2011 on 5:03 pm[...] new lockscreen theme to my iPod Touch and for that I need the Calibri font installed. So I followed this guide, which incidentally was about the Calibri font. However, after executing every step (except [...]
-
Anonymous
August 10th, 2013 on 8:46 am[Tutorial] Adding Extra Fonts to iPhone gauravs rants…
私はすることはできませんガイド称賛にもとに加え、情熱、ブーツ。のバイヤーとようにitの商品分析購入するページ。精神クリスチャンル ブタンの靴非常によくなる可能性がありますも安いメリンダ audralouboutin….
-
Book News: Seamus Heaney Poem Published Posthumously | stacykirmi
October 28th, 2013 on 7:03 pm[...] Grambling State University Lane Kiffin broncos UPS plane crash oj simpson Share [...]
-
Search Engine Optimisation Guide
September 6th, 2014 on 9:08 amSearch Engine Optimisation Guide…
[Tutorial] Adding Extra Fonts to iPhone « gauravs rants…



October 19th, 2014 on 2:23 am
หี
October 19th, 2014 on 4:35 am
Thanks for a marvelous posting! I truly enjoyed
reading it, you might be a great author. I will make certain to bookmark your
blog and will often come back at some point. I want to encourage yourself to
continue your great job, have a nice day!
October 19th, 2014 on 5:56 am
Thank you for sharing your info. I truly appreciate
your efforts and I am waiting for your further write ups thank
you once again. calculatoare second hand windows 7
October 19th, 2014 on 8:47 am
Thanks for the marvelous posting! I really enjoyed reading it, you happen to
be a great author. I will make sure to bookmark your blog and will often come
back someday. I want to encourage one to continue your great job, have a nice holiday weekend!
October 19th, 2014 on 9:06 am
It wass a satisfaction studying this piece oof creating.
I actuhally consider their must be a private touch to the subject matter backed up byy experience.I also enjoy writing weblogs
a great deal and have began my petsonal not as well lengthy in the past.
As an insurance coverage broker, itt is a fantastic way tto join with new clientele!
Effehtively Thanks a whole lot for posting this detauls up.