Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-27-2009, 02:32 AM   #1 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 18
Default how to use custom fonts?

Hello,

I have several complex vector graphics that i need positioned repeatedly, like in a font. So I made a .ttf font. How can I get iPhone to load my .ttf file? I checked the documentation but UIFont only has a static library of fonts and seemingly not a way to specify a new font.

what should i do??
peptides is offline   Reply With Quote
Old 02-27-2009, 05:55 AM   #2 (permalink)
Registered Member
 
Join Date: Jan 2009
Age: 25
Posts: 40
Default

There's a way to use custom fonts, but it seems to be a bit complicated... Here's a link

If you happen to use a UIWebView then you can take advantage of safari's support for css3 font-face - link

I personally haven't tried any this methods, so I can't be sure if they're the best way to do what you wanted...
Fuzzy Logic is offline   Reply With Quote
Old 05-28-2009, 08:55 PM   #3 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 10
Default Custom TTF fonts for your apps.

Check it out guys. This tool should help. It basically lets you rip a TTF font, add a dropshadow (or not) and it creates the objective C code to support the sprite map. Then there is a class for converting a string to a bitmap for use with an opengl texture or what have you.

EasyGlyph Updated - Kerning Fixed + Dropshadows ambiguiti.es - Web and Mobile Development News, Articles, and Tid-bits
alexsaves is offline   Reply With Quote
Old 05-29-2009, 01:54 AM   #4 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 18
Default

alexsaves, you've earned your name. thanks!
peptides is offline   Reply With Quote
Old 05-29-2009, 02:07 AM   #5 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 10
Default

Quote:
Originally Posted by peptides View Post
alexsaves, you've earned your name. thanks!
Heh, thanks.
alexsaves is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 158,309
Threads: 89,033
Posts: 379,817
Top Poster: BrianSlick (7,086)
Welcome to our newest member, alapimba
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:03 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0