<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Non-english text (e.g. russian) support]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=892</link>
		<description><![CDATA[The most recent posts in Non-english text (e.g. russian) support.]]></description>
		<lastBuildDate>Sat, 14 Dec 2013 07:30:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Non-english text (e.g. russian) support]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6081#p6081</link>
			<description><![CDATA[<p><strong>anael</strong>, I think, unicode is not drug. The font creates as texture and font with all unicode symbols is bad.<br />Maybe use first way? User define own alphabet in option as string, e.g. &quot;ABC...abc...&quot; and when texture created then only user sympols apears there.</p>]]></description>
			<author><![CDATA[dummy@example.com (Aikon)]]></author>
			<pubDate>Sat, 14 Dec 2013 07:30:00 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6081#p6081</guid>
		</item>
		<item>
			<title><![CDATA[Re: Non-english text (e.g. russian) support]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6078#p6078</link>
			<description><![CDATA[<p>Hi, thank you for the tip,</p><p>I started adding real unicode support in the experimental branch,<br />so I&#039;ll also try to check that to be sure the symbols are loaded by lib freetype.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Fri, 13 Dec 2013 17:06:08 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6078#p6078</guid>
		</item>
		<item>
			<title><![CDATA[Non-english text (e.g. russian) support]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=6077#p6077</link>
			<description><![CDATA[<p>I planning to use Maratis for my game. My language is not english. <br />When I try use national simbols then TEXT (object) is not display nearly correctly (one simbol ё is wrong).<br />I analized source-code, make some fix and now TEXT appears correct.</p><div class="codebox"><pre><code>// MFreetypeLoader.cpp

bool M_loadFont(const char * filename, void * data)
{
    ...
    error = FT_Load_Char(face, n, FT_LOAD_RENDER); 
    // replace twice to
    error = FT_Load_Char(face, (n &lt; 192) ? n : n + 1040 - 192, FT_LOAD_RENDER);  
    // My national symbols (russian) begin from 1040 position in unicode. First 192 symbols are common. 
    ...
}</code></pre></div><p><span class="postimg"><img src="http://sgeproject.narod.ru/pics/Maratis/font.jpg" alt="http://sgeproject.narod.ru/pics/Maratis/font.jpg" /></span></p><p>So, I see two ways to support non-english languages<br /></p><ol class="decimal"><li><p>build font by user-defined alphabet</p></li><li><p>add new option &quot;language&quot; for define start position of national symbols</p></li></ol><p>It&#039;s just remark for thinking, not request <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> <br />I&#039;m not professional C++ engineer (=&gt; My C++ is very weak) and gamedev is my hobby. <br />So you can find more elegance way to support other language.</p>]]></description>
			<author><![CDATA[dummy@example.com (Aikon)]]></author>
			<pubDate>Fri, 13 Dec 2013 14:29:09 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=6077#p6077</guid>
		</item>
	</channel>
</rss>
