emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unicode font-backend + tiling


From: Zhang Wei
Subject: Re: unicode font-backend + tiling
Date: Thu, 07 Dec 2006 21:58:55 +0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux)

Kenichi Handa <address@hidden> writes:

> In article <address@hidden>, Zhang Wei <address@hidden> writes:
>> But the following fontconfig setting still takes no effect:
>>   <match target="font" >
>
> How about changing that line to this as my example.
>
>>   <match target="pattern">

Yes, that takes effect, but another problem arises, my setting is like this:

--8<---------------cut here---------------start------------->8---
  <alias>
    <family>Bitstream Vera Sans Mono</family>
    <family>SimSun</family>
    <default><family>monospace</family></default>
  </alias>

  <alias>
    <family>monospace</family>
    <prefer>
      <family>Bitstream Vera Sans Mono</family>
      <family>SimSun</family>
    </prefer>
  </alias>

  <match target="font" >
    <test qual="any" name="family" compare="eq" >
      <string>SimSun</string>
    </test>
    <test name="pixelsize" compare="more_eq" >
      <double>12</double>
    </test>
    <test name="pixelsize" compare="less_eq" >
      <double>18</double>
    </test>
    <edit name="antialias" mode="assign" >
      <bool>false</bool>
    </edit>
  </match>
--8<---------------cut here---------------end--------------->8---

When I say

emacs --enable-font-backend -fn "Bitstream Vera Sans Mono:pixelsize=14" -Q

the ascii portion will use "Bitstream Vera Sans Mono", and chinese
characters will use "SimSun".

but if I use

<match target="pattern" >

to close the antialias of "SimSun", the ascii portion's antialias is
_also_ closed.

BTW, the following setting seems takes no effect:

--8<---------------cut here---------------start------------->8---
  <match target="pattern" >
    <test name="family" >
      <string>SimSun</string>
    </test>
    <edit name="family" mode="prepend" binding="strong" >
      <string>Bitstream Vera Sans Mono</string>
    </edit>
  </match>
--8<---------------cut here---------------end--------------->8---

this setting substitude ascii portion of "SimSun" with "Bitstream Vera
Sans Mono", it works well in Firefox, but start emacs with:

emacs --enable-font-backend -fn "SimSun:pixelsize=14" -Q

the ascii portion is still "SimSun", not "Bitstream Vera Sans Mono".




reply via email to

[Prev in Thread] Current Thread [Next in Thread]