gaurav’s rants

FontSwap icon and Package details

by gaurav on Dec.04, 2008, under iPhone

here’s an icon for the FontSwap app, couldn’t do a proper icon in time for release but here it is now.. will be added with the next update for those who are okay with the current icon..

FontSwap Package format:
1. Package must be a folder with the name FontName.font
FontName is the custom font’s name that you’ve ported. .font at the end is essential.

2. Package must contain all fonts related to the category it belongs to.
Dialer Fonts: PhonepadTwo.ttf
LockClock Fonts: LockClock.ttf
Notes Fonts: MarkerFeltThin.ttf
System Fonts: Helvetica.ttf *and* HelveticaBold.ttf

3. Package must be placed in the correct folder in the packages directory
“/var/mobile/Library/FontSwap/Packages/Dialer Fonts”
“/var/mobile/Library/FontSwap/Packages/LockClock Fonts”
“/var/mobile/Library/FontSwap/Packages/Notes Fonts”
“/var/mobile/Library/FontSwap/Packages/System Fonts”

4. Fonts must be ported with correct metadata intact. Applying fonts with incorrect metadata will cause serious problems like app crashes or SWOD.
here’s how to port fonts http://blog.gauravgiri.com/2008/08/tutorial-port-fonts-to-iphone/
this issue will be resolved in future versions of FontSwap so that fonts with incorrect metadata will not be installed.

5. Package should contain an Info.plist file
this is not utilized in the beta release, but placing this file will help your package to be compatible with future releases of FontSwap
Sample:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Author</key>
<string>Author Name</string>

<key>FontName</key>
<string>Custom Font Name</string>

<key>FontCategory</key>
<string>Category of Font</string>

<key>Description</key>
<string>Brief Description</string>

<key>URL</key>
<string>Author's Blog or Website</string>
</dict>
</plist>

6. Package should contain an image Preview.png with a preview of the custom font.
this too is not utilized in the beta release, but placing this file will help your package to be compatible with future releases of FontSwap.
Image dimensions must be 36px by 260px. It must show the Custom Font name in the font itself. Text size must be 24px. Text color must be black [#000000].

I know these are some strict rules but they will ensure that packages are uniform in appearance and easy on the eyes of the end-users.

Share and Enjoy:
  • Twitter
  • Digg
  • StumbleUpon
  • Reddit
  • del.icio.us
  • Technorati
  • NewsVine
  • Facebook
  • MySpace
  • Google Bookmarks
  • Slashdot
  • Mixx
  • LinkedIn
:, , , , , , , ,
24 comments for this entry:
  1. lyndwode

    Hi! Thanks gor this great app!
    I have used your tutorial to make a couple of custom fonts and then SSH to add them to FontSwap – GREAT job there too. Is there an easy way to make the font a bit bigger (another size)? the Font I ported seems a bit small when I install it, so I would like to make it bigger. Could you give me a hint as to how?
    I would also like to change the color of the font in the notes application to orange, is there a way to do that easily?
    Thanks,

  2. lyndwode

    anyone out there?

  3. neurostar

    Great work! thanks for making this app available.
    I have a suggestion for category folder name.
    If you consider any languages other than Latin-based languages, names for category is not quite proper. In case of Korean, AppleGothic is the only Korean font and used for both system and notes as well.
    If you are planing to support other fonts, you may consider to generalize the category folder name to simple original font name or at least make it additionally available as an option.

    For example,
    /var/mobile/Library/FontSwap/Packages(FontName.font)/AppleGothic/

  4. gaurav

    @lyndwode:
    in FontLab Studio, you can select all glyphs you want to edit and then go to “Tools > Action”
    in the window that pops up, look for actions under “Contour”
    Shift and Scale will be of interest to you. these can be used for moving font glyphs from their original locations and changing their horizontal and vertical size, respectively.

    as far as i know, you can not embed color in the font file. font file only specifies the shapes. colors are handled by the application using the font.
    you can edit the MobileNotes executable on your iPhone to get orange color, but it’s not always possible to do so.

  5. gaurav

    @neurostar:
    will keep this in mind for the next version.. :)

  6. gaurav’s rants » FontSwap now on Cydia

    [...] FontSwap icon and Package details [...]

  7. lyndwode

    thanks! I’ll try it out, and get back to you!

  8. lyndwode

    Cool! it sort of worked! In the notes app, (just in the Body Index, not in the notes themselves…) the tops of the characters get chopped off. In the actual notes, it worked perfectly! Maybe I made it too big?
    Is there a way to change the font size an application uses, instead of changing the font?
    thanks!

  9. Changing Fonts

    [...] there is a guide on gaurav’s rants blog, like opusandbill [...]

  10. Changing Fonts

    [...] Here is a direct link to the post with the guide. Last edited by Zimoxx; Today at 11:01 AM. [...]

  11. lhva1mk

    Why don’t you add a preview mode into this app? Just my idea :) . Thanks a lot!!! Great App!!!

  12. Orochi

    I had it on 2.1 on mi iphone and worked flawlessly.. i updated to 2.2 and now gives me the message “the application fontswap can not be oppened….
    tryed reebot, reinstall and restore with 2.2 and still the same….
    why?!?!

  13. Mickey_71

    @all who encountered the “APPLICATION CANNOT BE OPENED” error

    I had the same problem till now. I reinstalled several times with no luck. Independently i decided to add some appstore apps and some music via itunes during that i thought ok give it one more try and then -bing- its working. I have a 2G iPhone running fresh jailbroken 2.2 firmware with the usual apps from cydia installed. Dont ask me what i did i just made a standard sync with iTunes. Mayb you guys out there give it a try with the mentioned conditions.

    Merry x-mas

    Mickey

  14. D.Moore

    The problem people seem to be having with the error “Application cannot be opened” is simple. Usually due to the fact that many people poof the app or place it on SBSettings dock and then update it, after update it goes back to springboard but won’t load. Do this, after updating, place the app where it was before update and then bring it back to the springboard. For example, I place fontswap in my sbsettings dock, after I updated it, it was on Springboard, I went into sbsettings, used poof to remove the icon from the springboard, then toggles it on in the sbsettings dock. Respring. I then removed it from my sbsettings dock, unpoofed it as to make it visible again on springboard, respring again, open app. Done.

  15. shokkuweibu

    Guys, I didnt understand what D. Moore said but here’s a solution I found out while doodling.

    Here’s before my fix:
    I clean flashed my iphone 3g to 2.2. installed everything from scratch and of course Font Swap. Oops, damn stupid error came out.

    What you need to do:
    Apply at least a theme on Winterboard for those who haven’t done it at least once.

    What won’t work:
    Installing an app on App Store.. NO.
    Respring n times.. NO.
    Reboot n times.. NO.

    Hope this works for you guys out there.

  16. moebius80

    Hello,

    Wich resolution for the image ? 260×36 but with wich resolution ?
    Thanks.

  17. H.G. Manifold

    Can you please provide a little more info on the Preview.png? Maybe post an example? Resolution?

    thanks!

  18. Mace

    If there is anyone adept at making new fonts I have a Final Fantasy font and a Zelda font (as well as many others) that i think would be very popular. Would be fitting for a couple themes, and i would be happy to contribute.
    Thanks

  19. Nukoy

    Thanks for your program,

    I would like to you add some ability of FontSwap, because I need to change Thai font, it was contained in “arialuni.ttf”. If the “System Fonts” menu can change “arialunti.ttf”, I think that it is good for Thai iPhone user.

    Thanks again for your program.

  20. Glamagurl

    Hey I tried all these steps and it didn’t work. My whole ipod crashed. Anyways so I’m kind of scared to try again as there are about 10 other fonts I want to add to my ipod. Would you be able to help me out with it and/or make some for me so that I can add them?? I’m just too scared to try again lol. I know lame, but still! LOL.

  21. Weazel13

    I can’t figure out how to put in fonts maybe someone can email me at rockster619@gmail.com and I could give them the font link and they can install it in fontswap for me and email back the whole app with the font please I’d apreciate it alott!!

  22. Julian

    Are there any repositories in cydia other then the stock ones that offer additional fontswap fonts? For those who aren’t well suited for ssh into their phones/iPods?

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...