<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>cocos2d for iPhone &#187; Topic: New guy having trouble with CCLabel font change...</title>
		<link>http://www.cocos2d-iphone.org/forum/topic/13151</link>
		<description>A fast, easy to use, free, and community supported 2D game engine</description>
		<language>en-US</language>
		<pubDate>Sun, 19 May 2013 05:04:49 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.cocos2d-iphone.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.cocos2d-iphone.org/forum/rss/topic/13151" rel="self" type="application/rss+xml" />

		<item>
			<title>himanshu_cocos2D on "New guy having trouble with CCLabel font change..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/13151#post-216494</link>
			<pubDate>Fri, 09 Nov 2012 05:58:39 +0000</pubDate>
			<dc:creator>himanshu_cocos2D</dc:creator>
			<guid isPermaLink="false">216494@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>@<a href='http://www.cocos2d-iphone.org/forum/profile/82156'>renevdkooi</a> thank you for taking me out with your help.
</p></description>
		</item>
		<item>
			<title>renevdkooi on "New guy having trouble with CCLabel font change..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/13151#post-162611</link>
			<pubDate>Sun, 03 Jun 2012 02:47:11 +0000</pubDate>
			<dc:creator>renevdkooi</dc:creator>
			<guid isPermaLink="false">162611@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>@ shahidpucit know it's a bit late, but your statement is incorrect.</p>
<p>cocos2d (actually it's just an ios xcode thing) allows you to add custom font. So it's distributed with the app.</p>
<p>- get your font (make sure you're allowed to use and dist it)<br />
- add it to your app (make sure you add it through "Add files to..." (problems may occur when just dragging it into the project resulting in Font not found.<br />
- in your app.PLIST file add a row called "Fonts provided by..."<br />
- sub item is the font file name.</p>
<p>now create your label like others said by using the exact name of the font. (double click the font to see the name)
</p></description>
		</item>
		<item>
			<title>jblaven on "New guy having trouble with CCLabel font change..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/13151#post-73744</link>
			<pubDate>Tue, 01 Feb 2011 20:29:07 +0000</pubDate>
			<dc:creator>jblaven</dc:creator>
			<guid isPermaLink="false">73744@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Lam,</p>
<p>Worked like a charm!
</p></description>
		</item>
		<item>
			<title>jblaven on "New guy having trouble with CCLabel font change..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/13151#post-73733</link>
			<pubDate>Tue, 01 Feb 2011 20:03:35 +0000</pubDate>
			<dc:creator>jblaven</dc:creator>
			<guid isPermaLink="false">73733@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Thanks guys.  Both of your replies are a huge help! </p>
<p>Lam, thanks for not assuming!  Every little bit helps, LOL.</p>
<p>I really would like to use that font, so I am going to make sure I use the extension and place it in the resources folder.</p>
<p>Thanks again,</p>
<p>Joe
</p></description>
		</item>
		<item>
			<title>Lam on "New guy having trouble with CCLabel font change..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/13151#post-73730</link>
			<pubDate>Tue, 01 Feb 2011 19:58:28 +0000</pubDate>
			<dc:creator>Lam</dc:creator>
			<guid isPermaLink="false">73730@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Oh ok Papryus is your own custom font right?<br />
If you're not using a system font (font's available on the iphone) you have to indicate the filename extension in the name<br />
<pre><code>[CCLabelTTF labelWithString:@&#34;Hello World&#34; fontName:@&#34;Papyrus.ttf&#34; fontSize:24];</code></pre>
<p>And also have the font in the resources directory but that was probably obvious ;)
</p></description>
		</item>
		<item>
			<title>shahidpucit on "New guy having trouble with CCLabel font change..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/13151#post-73727</link>
			<pubDate>Tue, 01 Feb 2011 19:47:15 +0000</pubDate>
			<dc:creator>shahidpucit</dc:creator>
			<guid isPermaLink="false">73727@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>This is the following link which shows possible font name in iphone<br />
<a href="http://ajnaware.wordpress.com/2008/10/24/list-of-fonts-available-on-the-iphone/" rel="nofollow">http://ajnaware.wordpress.com/2008/10/24/list-of-fonts-available-on-the-iphone/</a><br />
hope it helps. using iphone built-in font list. choosing other fonts won`t be good because that person may not have that font.
</p></description>
		</item>
		<item>
			<title>jblaven on "New guy having trouble with CCLabel font change..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/13151#post-73726</link>
			<pubDate>Tue, 01 Feb 2011 19:43:26 +0000</pubDate>
			<dc:creator>jblaven</dc:creator>
			<guid isPermaLink="false">73726@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>It did work with the font "Marker Felt".  Even at different font sizes.</p>
<pre><code>// on &#34;init&#34; you need to initialize your instance
-(id) init
{
	// always call &#34;super&#34; init
	// Apple recommends to re-assign &#34;self&#34; with the &#34;super&#34; return value
	if( (self=[super init] )) {

		// create and initialize a Label
		CCLabelTTF *label = [CCLabelTTF labelWithString:@&#34;Hello World&#34; fontName:@&#34;Papyrus&#34; fontSize:24];

		// ask director the the window size
		CGSize size = [[CCDirector sharedDirector] winSize];

		// position the label on the center of the screen
		label.position =  ccp( size.width /2 , size.height/2 );

		// add the label as a child to this Layer
		[self addChild: label];
	}
	return self;
}</code></pre></description>
		</item>
		<item>
			<title>shahidpucit on "New guy having trouble with CCLabel font change..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/13151#post-73725</link>
			<pubDate>Tue, 01 Feb 2011 19:39:22 +0000</pubDate>
			<dc:creator>shahidpucit</dc:creator>
			<guid isPermaLink="false">73725@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>is your text dsplays with other font.Did it visible .can you post the source code
</p></description>
		</item>
		<item>
			<title>jblaven on "New guy having trouble with CCLabel font change..."</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/13151#post-73724</link>
			<pubDate>Tue, 01 Feb 2011 19:29:19 +0000</pubDate>
			<dc:creator>jblaven</dc:creator>
			<guid isPermaLink="false">73724@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hey guys,</p>
<p>I purchased the Cocos2d for iPhone .99 Beginners Guide eBook and am in the process of going through the tutorials.  I am at step 2. on page 38.  I figured I would try a different font.  I would like to use the Papyrus font.  Well, it didn't work.  The app loads, but no text on the screen.  I even downloaded a .TTF version of Papyrus to the Font Book thinking that the type of font might be causing the problem.</p>
<p>I am stuck here.  I have a feeling this is an easy fix, I am just unsure of the proper keywords to use for my search.</p>
<p>Thanks in advance.</p>
<p>Regards,</p>
<p>Joe
</p></description>
		</item>

	</channel>
</rss>
