Custom Fonts

12 views
Skip to first unread message

John

unread,
Sep 21, 2012, 9:11:23 AM9/21/12
to iphonesdkd...@googlegroups.com
Hi Guys, what is the best way to use custom fonts?

I`m trying to use the normal info.plist array of fonts, but isn`t working, the font`s are not being used in the application, and i`m using the correct font names on the UIFont

Any clues?

Thanks

 John
+55 (12) 8864-1594
Twitter | Last.FM

iOS/Android/Frontend Developer

Ritesh Ranjan

unread,
Sep 21, 2012, 10:37:12 AM9/21/12
to iphonesdkd...@googlegroups.com
Hi,

Hope you have already added fonts properly.. 

If the font name is PTS76F.rtf and fonts actual name is "PT Sans". Then you should write

textLabel.font = [UIFont fontWithName:@"PT Sans" size:14];


This will work. 





-- 
Ritesh Ranjan
Sent with Sparrow

--
You received this message because you are subscribed to the Google Groups "iPhone SDK Development" group.
To post to this group, send email to iphonesdkd...@googlegroups.com.
To unsubscribe from this group, send email to iphonesdkdevelop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphonesdkdevelopment?hl=en.

John

unread,
Sep 24, 2012, 10:31:15 AM9/24/12
to iphonesdkd...@googlegroups.com
Yeah, but what to do when the font that i need to use, has a style? Like bold, italic? The name of the font do not change, right?

How can i specify the style i want? For example, if i put PTS76Fitalic.ttf on the folder, The name will be "PT Sans". How to make it italic?

 John
+55 (12) 8864-1594
Twitter | Last.FM

iOS/Android/Frontend Developer
Sent with Sparrow

Leonardo Parro Jr

unread,
Sep 24, 2012, 10:55:49 AM9/24/12
to iphonesdkd...@googlegroups.com
In our case, we have different set of fonts w/ different styles (bold, italic, regular, etc).


-- 
Regards,
Leo (@jayrparro)


Reply all
Reply to author
Forward
0 new messages