<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mobile Perspectives &#187; Fonts</title>
	<atom:link href="http://www.BluMtnWerx.com/blog/tag/fonts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.BluMtnWerx.com/blog</link>
	<description>Computing at the Edge!</description>
	<lastBuildDate>Fri, 19 Aug 2011 00:29:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>What Fonts are on my iPhone?</title>
		<link>http://www.BluMtnWerx.com/blog/2009/08/what-fonts-are-on-my-iphone/</link>
		<comments>http://www.BluMtnWerx.com/blog/2009/08/what-fonts-are-on-my-iphone/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 07:38:43 +0000</pubDate>
		<dc:creator>deans</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[iPhone SDK]]></category>

		<guid isPermaLink="false">http://www.BluMtnWerx.com/blog/?p=258</guid>
		<description><![CDATA[This is really easy to answer, but I keep seeing the question on various forums.&#160;  I've needed to refer to the list several times recently for some UI work, and I got tired of searching for the list every time that I needed it, so...]]></description>
			<content:encoded><![CDATA[<p>The iPhone / iPod touch have a reasonable list of available fonts.&nbsp;  Of course, the selection is limited when compared to a desktop OS, but you should be able to find something suitable for most purposes.&nbsp;  One issue that seems to be a challenge for some developers is the fact that you need the specific font names to use with calls like:</p>
<hr SIZE=5/>
<pre>

<span STYLE="font-family:Courier;"> [myLbl setFont:[UIFont fontWithName:@"Helvetica-BoldOblique" size:20]];</span></pre>
<p align="center"><em>and</em></p>
<p><span STYLE="font-family:Courier;">UIFont *font = [UIFont fontWithName:@"Zapfino" size:titleSz];</span></p>
<hr SIZE=5/>
&nbsp;<br />
The complete list of font names can be easily generated with the following code snippet:</p>
<hr SIZE=5/>
<pre>

<span STYLE="font-family:Courier;">   NSArray *names = [UIFont familyNames];
   NSArray *fontFaces;
   NSLog(@"FONT NAMES");
   for (NSString *name in names)
   {
      NSLog(@"Font Family:  %@",name);
      fontFaces = [UIFont fontNamesForFamilyName:name];
      for (NSString *fname in fontFaces)
      {
         NSLog(@"              %@",fname);
      }
   }

</span></pre>
<hr SIZE=5/>
&nbsp;<br />
That&#8217;s pretty much all that there is to it.&nbsp;  I always worry about maintaining a static list &mdash; What if Apple adds new fonts in 3.x?&nbsp;  With that caveat, here&#8217;s what we get from an iPod touch, running the 2.2.1 version of the software <em>(I removed all of the NSLog information)</em>:</p>
<hr SIZE=10/>
<pre>

<span STYLE="font-family:Courier;">FONT NAMES
  Font Family:  Courier
                Courier
                Courier-BoldOblique
                Courier-Oblique
                Courier-Bold
  Font Family:  AppleGothic
                AppleGothic
  Font Family:  Arial
                ArialMT
                Arial-BoldMT
                Arial-BoldItalicMT
                Arial-ItalicMT
  Font Family:  STHeiti TC
                STHeitiTC-Light
                STHeitiTC-Medium
  Font Family:  Hiragino Kaku Gothic ProN
                HiraKakuProN-W6
                HiraKakuProN-W3
  Font Family:  Courier New
                CourierNewPS-BoldMT
                CourierNewPS-ItalicMT
                CourierNewPS-BoldItalicMT
                CourierNewPSMT
  Font Family:  Zapfino
                Zapfino
  Font Family:  Arial Unicode MS
                ArialUnicodeMS
  Font Family:  STHeiti SC
                STHeitiSC-Medium
                STHeitiSC-Light
  Font Family:  American Typewriter
                AmericanTypewriter
                AmericanTypewriter-Bold
  Font Family:  Helvetica
                Helvetica-Oblique
                Helvetica-BoldOblique
                Helvetica
                Helvetica-Bold
  Font Family:  Marker Felt
                MarkerFelt-Thin
  Font Family:  Helvetica Neue
                HelveticaNeue
                HelveticaNeue-Bold
  Font Family:  DB LCD Temp
                DBLCDTempBlack
  Font Family:  Verdana
                Verdana-Bold
                Verdana-BoldItalic
                Verdana
                Verdana-Italic
  Font Family:  Times New Roman
                TimesNewRomanPSMT
                TimesNewRomanPS-BoldMT
                TimesNewRomanPS-BoldItalicMT
                TimesNewRomanPS-ItalicMT
  Font Family:  Georgia
                Georgia-Bold
                Georgia
                Georgia-BoldItalic
                Georgia-Italic
  Font Family:  STHeiti J
                STHeitiJ-Medium
                STHeitiJ-Light
  Font Family:  Arial Rounded MT Bold
                ArialRoundedMTBold
  Font Family:  Trebuchet MS
                TrebuchetMS-Italic
                TrebuchetMS
                Trebuchet-BoldItalic
                TrebuchetMS-Bold
  Font Family:  STHeiti K
                STHeitiK-Medium
                STHeitiK-Light</span>
  </pre>
<hr SIZE=10/>
&nbsp;  </p>
<p><strong>Happy Fonting!</strong></p>
<p>&nbsp;  </p>
<hr .../>
Technorati Tags:&nbsp; <a href="http://technorati.com/tag/iPhone" rel="tag">iPhone</a>, <a href="http://technorati.com/tag/iPod+Touch" rel="tag">iPod Touch</a>, <a href="http://technorati.com/tag/Apple" rel="tag">Apple</a>, <a href="http://technorati.com/tag/fonts" rel="tag">fonts</a>, <a href="http://technorati.com/tag/mobile" rel="tag">mobile</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.BluMtnWerx.com/blog/2009/08/what-fonts-are-on-my-iphone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

