<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://www.ccdw.org"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Creative Constant Development Workgroup - hacking</title>
 <link>https://www.ccdw.org/taxonomy/term/3</link>
 <description></description>
 <language>en</language>
<item>
 <title>Google Earth (v6) 的中文字形 (debian sid amd64)</title>
 <link>https://www.ccdw.org/node/5</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot; property=&quot;content:encoded&quot;&gt;&lt;p&gt;&lt;span style=&quot;color:red&quot;&gt;*** 本則資訊已過時 ***&lt;/span&gt; Linux版的Google Earth從發行以來，中文的顯示一直都不能隨裝即用。一個主要的原因在於它用的圖形介面程式庫是它所附帶，32位元的QT動態程式庫。因為不是使用者系統中所的QT動態程式庫，使用者不能用qtconfig來更正中文字形。這一點，在一般32位元的Linux系統上，可以用系統中已安裝的動態程式庫(libQT*.so檔們)來取代，詳細步驟可以參考[1]。在64位元的系統上，由於系統中的32位元相容程式庫常有不全(如debian sid的libQtWebKit.so)，單純的刪去附帶的版本會造成程式無法啟動。這時，可以試著用[1]中打包好的檔案來跑看看。但如果還是動不了，要自行補全所有的程式庫可能要費好一些功夫。 一個比較簡單的方法是利用QT程式庫的通用命令列參數: -stylesheet來指定Google Earth的style(見[2])。這個方法用在Window下，網路上已經多次被提到(例如[3])。只是，雖然Google Earth是用QT寫成的，Google似乎用到了一些標準外的方法，以至於在指定stylesheet時一些popup的繪製立即會出現問題。而對style的指定，也常看不到想要的效果。不過，經過一些嘗試，以下的stylesheet在debian sid amd64的平台下大致可以讓Google Earth到達“可用”的狀態:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;* { font-family: &quot;AR PL UMing TW&quot;; } QMenu, QMenuBar { background: rgb(240,240,240); }&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;(雖然仍有少數地方顯示不出字形來)上面的font-family行解決了中文字的顯示，而background行是用來避開popup menu中看不到字的問題。使用者可以把上面的style碼存到“/opt/google/earth/free/ge.qss”檔中，並用&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;google-earth -stylesheet ge.qss&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;來啟動Google Earth。&lt;span style=&quot;color:red&quot;&gt;《如果你發現了更好的設定項目，歡迎留言分享。》&lt;/span&gt; 不過這些都只是針對QT Widgets部分的設定。如果Earth的圖面上有中文的話，使用者還是可能會看到變成方塊的字。這時候可以用選單中[工具]-&amp;gt;[選項...]-&amp;gt;[3D檢示]-&amp;gt;[選擇3D字形](或是[Tools]-&amp;gt;[Options...]-&amp;gt;[3D View]-&amp;gt;[Choose 3D Font])來選擇可用的中文字形即可。 [1] &lt;a href=&quot;http://swyear.blogspot.com/2011/05/opensuse-google-earth-6.html&quot;&gt;http://swyear.blogspot.com/2011/05/opensuse-google-earth-6.html&lt;/a&gt; [2] &lt;a href=&quot;http://doc.qt.nokia.com/4.7-snapshot/stylesheet.html&quot;&gt;http://doc.qt.nokia.com/4.7-snapshot/stylesheet.html&lt;/a&gt; [3] &lt;a href=&quot;http://www.cnblogs.com/agateriver/archive/2010/05/16/1736626.html&quot;&gt;http://www.cnblogs.com/agateriver/archive/2010/05/16/1736626.html&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-field-tags field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Tags:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/taxonomy/term/3&quot; typeof=&quot;skos:Concept&quot; property=&quot;rdfs:label skos:prefLabel&quot; datatype=&quot;&quot;&gt;hacking&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Sun, 23 Oct 2011 22:40:00 +0000</pubDate>
 <dc:creator>cjj</dc:creator>
 <guid isPermaLink="false">5 at https://www.ccdw.org</guid>
 <comments>https://www.ccdw.org/node/5#comments</comments>
</item>
</channel>
</rss>
