hi Bahdad<br><br><br><div class="gmail_quote">On Nov 30, 2007 3:04 PM, Behdad Esfahbod &lt;<a href="mailto:behdad@behdad.org">behdad@behdad.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>---------- Forwarded message ----------<br>From:&nbsp;Behdad Esfahbod &lt;<a href="mailto:besfahbo@redhat.com">besfahbo@redhat.com</a>&gt;<br>To:&nbsp;Qianqian Fang &lt;<a href="mailto:fangqq@gmail.com">fangqq@gmail.com</a>&gt;
<br>Date:&nbsp;Fri, 30 Nov 2007 12:40:04 -0500<br>Subject:&nbsp;Re: Request for review and advice on wqy-bitmap-fonts fontconfig settings<br>On Thu, 2007-11-29 at 19:08 -0500, Qianqian Fang wrote:<br>&gt;<br>&gt; For zh locales, in addition to the above problem, under monospace
<br>&gt; (gnome-terminal),<br>&gt; the Latin glyphs were rendered by the wqy bitmap glyphs. I expect<br>&gt; those are rendered by Dejavu Sans Mono or Bitstream Sans Mono.<br><br>That&#39;s because gnome-terminal, unlike Pango, doesn&#39;t refine language
<br>tags passed to fontconfig based on the input text. &nbsp;That is, it always<br>asks fontconfig for fonts to render Chinese, even if the text is Latin.<br>Can be fixed in g-t for sure, but not a high prio. &nbsp;It&#39;s impossible to
<br>fix this with a fontconfig config. &nbsp;That&#39;s what you pay when you put<br>multiple scripts in a single font.</blockquote><div>&nbsp;</div><div>In 0.9.9-1, the following fontconfig config does work for gnome-terminal <br>
(for both zh or non-zh locales), could you give some explanations? <br><pre>    &lt;match target=&quot;pattern&quot;&gt;<br>        &lt;test equal=&quot;any&quot; compare=&quot;eq&quot; name=&quot;family&quot;&gt;<br>                &lt;string&gt;WenQuanYi Bitmap Song&lt;/string&gt;
<br>        &lt;/test&gt;<br>        &lt;test equal=&quot;any&quot; compare=&quot;eq&quot; name=&quot;family&quot;&gt;<br>                &lt;string&gt;monospace&lt;/string&gt;<br>        &lt;/test&gt;<br>        &lt;edit name=&quot;family&quot; mode=&quot;prepend&quot;&gt;
<br>                &lt;string&gt;Bitstream Vera Sans Mono&lt;/string&gt;<br>        &lt;/edit&gt;<br>        &lt;edit name=&quot;family&quot; mode=&quot;prepend&quot; binding=&quot;strong&quot;&gt;<br>                &lt;string&gt;DejaVu LGC Sans Mono&lt;/string&gt;
<br>        &lt;/edit&gt;<br>    &lt;/match&gt;</pre><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&gt; in either case, the output of
<br>&gt; FC_DEBUG=4 fc-match &quot;monospace:lang=zh-cn:pixelsize=10px&quot;<br>&gt; always put wqy as the first one, this is not consistent with what<br>&gt; Firefox actually displayed under en locales.<br><br>What do you mean &quot;always&quot;? &nbsp;It&#39;s just one query. &nbsp;Of course it prefers
<br>wqy: you are asking for a Chinese font and your config files make it<br>prefer wqy for Chinese.<br></blockquote><div><br>I found a problem in my original file, I meant to put DejaVu in front<br>of WQY bitmap Song in the &quot;monospace&quot; block. However, even after fixing
<br>this, wqy-bitmap song is still listed as the first one in my fc-match output (for<br>all sizes under zh-cn locale). Doesn&#39;t the first one in the &lt;prefer&gt; list<br>get higher priority to be used?<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>&gt; Can any of you help me to find out how to get around these problems?<br><br><br>Got a question for you: &nbsp;You said wqy is a fork of bitmaps from a<br>TrueType font. &nbsp;Why not just contribute the bitmaps back to the original
<br>font?<br></blockquote><div><br>this bitmap fonts starts from Firefly bitmap font, which is licensed under GPL. <br><a href="http://www.study-area.org/apt/firefly-font/Changelog">http://www.study-area.org/apt/firefly-font/Changelog
</a><br>Firefly font was integrated into Uming with some verbal permission from Firefly.<br>Uming is licensed under Arphic Public License (APL), which is not compatible with<br>GPL. This font was significantly expanded and improved by wqy&#39;s contributors, 
<br>and our Copyright committee decided to stay with GPL. Therefore, merging to <br>Uming is not permitted by license. We also developed our own vector fonts, <br>one of the first release is wqy-zenhei-fonts (currently in Fedora). Zenhei 
<br>embedded the bitmap glyphs for about 20400 characters out of 27842 characters <br>in wqy-bitmap-fonts (those missing are due to the lack of outline data).<br>Comparing to uming, it only has ~16000 char containing bitmap glyphs.
<br></div></div><br>I did not find in your reply: do you have any thought on why the <br>last two match blocks (replacing wqy bitmap font by Uming for large/small sizes) <br>does not work?<br><br>thanks<br><br>Qianqian<br>
<br>