<?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>.NET Tips and Tricks &#187; SpriteFont</title>
	<atom:link href="http://blog.themagicsoftware.com/category/spritefont/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.themagicsoftware.com</link>
	<description>General tips and tricks for developers about the Microsoft technology stack including the .NET Framework, ASP.NET, ASP.NET MVC, C#.NET, VB.NET, WCF, WPF, WF, Silverlight, XAML, XNA, Windows Phone, Windows 8 and more.</description>
	<lastBuildDate>Sat, 02 Feb 2013 04:54:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Where can I download free font types for international or unicode characters (such as Korean, Japanese, etc.) for a Windows Phone 7 (WP7) XNA game?</title>
		<link>http://blog.themagicsoftware.com/2011/10/where-can-i-download-free-font-types-for-international-or-unicode-characters-such-as-korean-japanese-etc-for-a-windows-phone-7-wp7-xna-game.html</link>
		<comments>http://blog.themagicsoftware.com/2011/10/where-can-i-download-free-font-types-for-international-or-unicode-characters-such-as-korean-japanese-etc-for-a-windows-phone-7-wp7-xna-game.html#comments</comments>
		<pubDate>Tue, 25 Oct 2011 05:02:00 +0000</pubDate>
		<dc:creator>Gerardo Melendrez</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Font Type]]></category>
		<category><![CDATA[International Characters]]></category>
		<category><![CDATA[International Font]]></category>
		<category><![CDATA[Japanese Font]]></category>
		<category><![CDATA[Korean Font]]></category>
		<category><![CDATA[SpriteFont]]></category>
		<category><![CDATA[WP7]]></category>
		<category><![CDATA[XNA]]></category>

		<guid isPermaLink="false">http://blog.themagicsoftware.com/2011/10/where-can-i-download-free-font-types-for-international-or-unicode-characters-such-as-korean-japanese-etc-for-a-windows-phone-7-wp7-xna-game.html</guid>
		<description><![CDATA[&#160; In practice, you don&#8217;t really need a special font to render these type of characters. You can use any sprite font just as you would for displaying basic ASCII characters. For example the ones available for free from Microsoft such as Segoe UI Mono, Andy, Miramonte, etc. For a complete list, and to download those [...]]]></description>
				<content:encoded><![CDATA[<p>&nbsp;</p>
<div style="font-family: Arial, Helvetica, Verdana, sans-serif; margin-bottom: 1em; margin-top: 1em; padding: 0px;">In practice, you don&#8217;t really need a special font to render these type of characters. You can use any sprite font just as you would for displaying basic ASCII characters. For example the ones available for free from Microsoft such as Segoe UI Mono, Andy, Miramonte, etc.</div>
<div style="font-family: Arial, Helvetica, Verdana, sans-serif; margin-bottom: 1em; margin-top: 1em; padding: 0px;">For a complete list, and to download those free font files click here: <a style="color: #3595c5; outline-color: initial; outline-style: none; outline-width: initial; padding: 0px; margin: 0px;" href="http://create.msdn.com/en-US/education/catalog/utility/font_pack">Redistributable Font Pack</a></div>
<div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, Verdana, sans-serif;"><br />
</span></div>
<div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, Verdana, sans-serif;">The key is specifying the different character regions in the </span><span class="Apple-style-span" style="background-color: white; font-family: Consolas; white-space: pre;"><span style="color: blue;">&lt;</span><span style="color: #a31515;">CharacterRegions</span><span style="color: blue;">&gt; </span></span><span class="Apple-style-span" style="font-family: Arial, Helvetica, Verdana, sans-serif;">section of the spritefont xml file, or the individual characters that you want to display. </span></div>
<div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, Verdana, sans-serif;">For a list of the different regions click </span><a style="color: #3595c5; font-family: Arial, Helvetica, Verdana, sans-serif; outline-color: initial; outline-style: none; outline-width: initial; padding: 0px; margin: 0px;" href="http://unicode.org/charts/">Unicode 6.0 Character Code Charts</a></div>
<div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, Verdana, sans-serif;">Now, there are two more important things: one is to specify a default character by setting the DefaultCharacter section of the spritefont xml file, to avoid exceptions when you try to display a character that is not on your defined regions like this:</span></div>
<div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span class="Apple-style-span" style="background-color: white; font-family: Consolas; white-space: pre;"><span style="color: blue;">&lt;</span><span style="color: #a31515;">DefaultCharacter</span><span style="color: blue;">&gt;</span>?&lt;<span style="color: blue;"><!--</span--><span style="color: #a31515;">DefaultCharacter</span><span style="color: blue;">&gt;</span></span></span></div>
<div style="margin-bottom: 1em; margin-top: 1em; padding: 0px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, Verdana, sans-serif;">And second, some international languages like Japanese and Korean can have thousands of different characters, so including so many characters can be very inefficient or increase the size of your game.</span></div>
<div style="font-family: Arial, Helvetica, Verdana, sans-serif; margin-bottom: 1em; margin-top: 1em; padding: 0px;">So to build a very efficient game where you only consider characters that you need for your game, rather than manually specifying all the different regions or characters, download this excellent and simple <a style="color: #3595c5; outline-color: initial; outline-style: none; outline-width: initial; padding: 0px; margin: 0px;" href="http://create.msdn.com/en-US/education/catalog/sample/localization">Localization</a> example that uses resource files for the different languages by clicking <a href="http://create.msdn.com/en-US/education/catalog/sample/localization">here</a>.</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.themagicsoftware.com/2011/10/where-can-i-download-free-font-types-for-international-or-unicode-characters-such-as-korean-japanese-etc-for-a-windows-phone-7-wp7-xna-game.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
