<?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>iphone and gis development notes &#187; chinese</title>
	<atom:link href="http:///wordpress/tag/chinese/feed/" rel="self" type="application/rss+xml" />
	<link>/wordpress</link>
	<description>By Rupert</description>
	<lastBuildDate>Sun, 29 Aug 2010 22:44:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing Chinese Font for Mapserver</title>
		<link>/wordpress/2008/07/installing-chinese-font-for-mapserver/</link>
		<comments>/wordpress/2008/07/installing-chinese-font-for-mapserver/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 15:02:31 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[chinese]]></category>
		<category><![CDATA[mapserver]]></category>

		<guid isPermaLink="false">/wordpress/?p=206</guid>
		<description><![CDATA[We wanted to use a different font for mapserver which is Microsoft Yahei instead of zysong. Apparently, mapserver have some issues with path problems or with the ttf having more than one word as a font name. Thanks to Martin Hosken&#8217;s perl modules for fonts, we were able to rename the Microsoft Yahei TTF to]]></description>
			<content:encoded><![CDATA[<p>We wanted to use a different font for mapserver which is <em>Microsoft Yahei</em> instead of <em>zysong</em>. Apparently, mapserver have some issues with path problems or with the ttf having more than one word as a font name. </p>
<p>Thanks to <a href="http://search.cpan.org/~mhosken/">Martin Hosken&#8217;s perl modules for fonts</a>, we were able to rename the Microsoft Yahei TTF to msyh.ttf.</p>
<p>1. Download: (a) Font-TTF-0.45 (b) Font-TTF-Scripts-0.11.1</p>
<p>2. Unzip</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#perl Makefile.pl</span>
<span style="color: #666666; font-style: italic;">#make</span>
<span style="color: #666666; font-style: italic;">#make install</span></pre></div></div>

<p>3. ttfname</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rupert:Desktop rupert$ ttfname
Usage:
ttfname <span style="color: #7a0874; font-weight: bold;">&#91;</span>-f <span style="color: #ff0000;">&quot;full_name&quot;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-t num<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-q<span style="color: #7a0874; font-weight: bold;">&#93;</span> infile.ttf outfile.ttf 
Renames the TTF with the given name and outputs the newly named font to out.ttf.
Options:
      <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;name&quot;</span>   specifies new full name <span style="color: #7a0874; font-weight: bold;">&#40;</span>optional<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #c20cb9; font-weight: bold;">as</span> opposed to the
                  default calculated form.
      <span style="color: #660033;">-l</span> lang     language number to use <span style="color: #7a0874; font-weight: bold;">&#40;</span>default all langs<span style="color: #7a0874; font-weight: bold;">&#41;</span>
                  <span style="color: #000000; font-weight: bold;">if</span> specified name entries will be added <span style="color: #000000; font-weight: bold;">for</span> all platforms and
                      encodings covered by the cmap <span style="color: #000000; font-weight: bold;">if</span> not already there
      <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;name&quot;</span>   specifies new font family name <span style="color: #7a0874; font-weight: bold;">&#40;</span>not optional<span style="color: #7a0874; font-weight: bold;">&#41;</span>
      <span style="color: #660033;">-q</span>          disable signon message
      <span style="color: #660033;">-s</span> filename overrides <span style="color: #660033;">-n</span> and gets string from file. Useful <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #660033;">-t</span>
      <span style="color: #660033;">-t</span> num      overrides the normal naming areas to change another
                  string <span style="color: #660033;">-f</span> becomes inactive.
<span style="color: #666666; font-style: italic;">#ttfname -f &quot;Microsoft YaHei&quot; -n &quot;msyh&quot; Microsoft\ YaHei.ttf msyh.ttf</span></pre></div></div>

<p><img src="/wordpress/wp-content/uploads/2008/07/picture-11.png" alt="Picture 1.png" border="0" width="280" height="262" /></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/07/installing-chinese-font-for-mapserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
