<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Font selection components	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/font-selection-components/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/font-selection-components?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=font-selection-components</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 15 Oct 2015 10:07:20 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Volkmar		</title>
		<link>https://undocumentedmatlab.com/articles/font-selection-components#comment-358980</link>

		<dc:creator><![CDATA[Volkmar]]></dc:creator>
		<pubDate>Thu, 15 Oct 2015 10:07:20 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6013#comment-358980</guid>

					<description><![CDATA[Although uisetfont is a stock MATLAB UI for font selection, its output is not directly usable when creating new graphics/ui objects: Graphics objects do not accept the struct itself as a font specification (at least not in HG2). One needs to convert this struct into a list of key/value pairs to actually use it as font specifications. Something like this
&lt;pre lang=&quot;matlab&quot;&gt; 
fs = uisetfont;
keys    = fieldnames(fs);
values  = struct2cell(fs);
keyvals = [keys&#039;; values&#039;];
keyvals{:}
&lt;/pre&gt;
creates a key/value cell array, which can be inserted using colon expansion when font properties need to be specified.]]></description>
			<content:encoded><![CDATA[<p>Although uisetfont is a stock MATLAB UI for font selection, its output is not directly usable when creating new graphics/ui objects: Graphics objects do not accept the struct itself as a font specification (at least not in HG2). One needs to convert this struct into a list of key/value pairs to actually use it as font specifications. Something like this</p>
<pre lang="matlab"> 
fs = uisetfont;
keys    = fieldnames(fs);
values  = struct2cell(fs);
keyvals = [keys'; values'];
keyvals{:}
</pre>
<p>creates a key/value cell array, which can be inserted using colon expansion when font properties need to be specified.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/font-selection-components#comment-358531</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 08 Oct 2015 08:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6013#comment-358531</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/font-selection-components#comment-358530&quot;&gt;Mikhail&lt;/a&gt;.

@Mikhail - read my section on &lt;a href=&quot;http://undocumentedmatlab.com/blog/font-selection-components#uicontrol&quot; rel=&quot;nofollow&quot;&gt;using a uicontrol&lt;/a&gt; - this is exactly what I did there.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/font-selection-components#comment-358530">Mikhail</a>.</p>
<p>@Mikhail &#8211; read my section on <a href="http://undocumentedmatlab.com/blog/font-selection-components#uicontrol" rel="nofollow">using a uicontrol</a> &#8211; this is exactly what I did there.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mikhail		</title>
		<link>https://undocumentedmatlab.com/articles/font-selection-components#comment-358530</link>

		<dc:creator><![CDATA[Mikhail]]></dc:creator>
		<pubDate>Thu, 08 Oct 2015 08:02:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6013#comment-358530</guid>

					<description><![CDATA[Hey Yair,

There is a &lt;i&gt;&lt;b&gt;listfonts&lt;/b&gt;&lt;/i&gt; command in MATLAB. I guess you can use its output to populate font selection dialog in your application.]]></description>
			<content:encoded><![CDATA[<p>Hey Yair,</p>
<p>There is a <i><b>listfonts</b></i> command in MATLAB. I guess you can use its output to populate font selection dialog in your application.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
