<?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"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Font weight</title>
		<atom:link href="http://cycling74.com/forums/topic/font-weight/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/font-weight/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 22:40:58 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/font-weight/#post-53882</guid>
					<title><![CDATA[Font weight]]></title>
					<link>http://cycling74.com/forums/topic/font-weight/#post-53882</link>
					<pubDate>Sat, 11 Dec 2010 19:21:17 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>Is there a simple, light-weight way to switch between bold and roman font weights?</p>
<p>Looking at the API docs, it seems as if I have to create two different t_jfonts and switch between them. Something like (untested code) :</p>
<pre><code>t_jfont* myFont = jfont_create(g, "Somefont", JGRAPHICS_FONT_SLANT_NORMAL, JGRAPHICS_FONT_WEIGHT_NORMAL, 31.4);
t_jfont* myBoldFont = jfont_create(g, "Somefont", JGRAPHICS, JGRAPHICS_FONT_WEIGHT_BOLD, 31.4);
Boolean bold = false;

while (somecondition) {
// yadayada, conditionally set bold flag

jtextlayout_set(myLayout, myStr, bold ? myBoldFont : myFont, yadayadayada);
jtextlayout_draw(myLayout, iGContext);
}</code></pre><p>Seems like there ought to be calls along the lines of jfont_setweight() but I&#8217;m not finding any. Is there a better way?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/font-weight/#post-193953</guid>
					<title><![CDATA[Re: Font weight]]></title>
					<link>http://cycling74.com/forums/topic/font-weight/#post-193953</link>
					<pubDate>Fri, 17 Dec 2010 21:44:30 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>Your solution is the way to go. Or just recreate the font each time (shouldn&#8217;t be very heavyweight).</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/font-weight/#post-193954</guid>
					<title><![CDATA[Re: Font weight]]></title>
					<link>http://cycling74.com/forums/topic/font-weight/#post-193954</link>
					<pubDate>Sat, 18 Dec 2010 22:19:10 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for the feedback.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/font-weight/#post-193955</guid>
					<title><![CDATA[Re: Font weight]]></title>
					<link>http://cycling74.com/forums/topic/font-weight/#post-193955</link>
					<pubDate>Wed, 25 May 2011 00:03:52 +0000</pubDate>
					<dc:creator>jml</dc:creator>

					<description>
						<![CDATA[
						<p>Along these lines, I am trying to update the font info that any text is drawn in my patcherview (via jgraphics_show_text()) when the user selects a given font face via the inspector.  Would I need to use a notify method to obtain this information, or should I be storing the font attr info (weight, size, family, etc) in my object&#8217;s struct?</p>
<p>Thanks<br />
jml</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/font-weight/#post-193956</guid>
					<title><![CDATA[Re: Font weight]]></title>
					<link>http://cycling74.com/forums/topic/font-weight/#post-193956</link>
					<pubDate>Wed, 25 May 2011 00:52:54 +0000</pubDate>
					<dc:creator>jml</dc:creator>

					<description>
						<![CDATA[
						<p>Should I be using jtextlayout_draw() instead?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/font-weight/#post-193957</guid>
					<title><![CDATA[Re: Font weight]]></title>
					<link>http://cycling74.com/forums/topic/font-weight/#post-193957</link>
					<pubDate>Wed, 25 May 2011 01:14:58 +0000</pubDate>
					<dc:creator>jml</dc:creator>

					<description>
						<![CDATA[
						<p>Nevermind.  I was passing the wrong arguments to my get methods.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

