Re: Cantarell font



On Thu, Feb 17, 2011 at 8:52 AM, Owen Taylor <otaylor redhat com> wrote:
<cosimoc>       owen, I'm the package owner so I guess it's my turn to
learn how fontconfig works
> cosimoc: I think that what you need to do is to match on the Cantarell family name, and then replace it with the Cantarell family name, but as a weak binding
> <owen>  <match target="pattern">
> <owen>  <test qual="any" name="family"><string>Cantarell</string></test>
> <owen>  <edit name="family" mode="assign" binding="weak"><string>Cantarell</string></edit>
> <owen>  </match>
> <owen>  cosimoc: the test to see whether that works is that
> <owen>  pango-view --language=vi --font 'Cantarell 12' --text 'Nguyễn Thái Ngọc Duy'
> <owen>  should show that name all in Deja Vu instead of having a ransom-note mix of Deja Vu and Cantarell
> <owen>  (that's the GNOME Vietnamese translator's name)

Just noticed d0a582c (Tweak fontconfig script not to override system
font by default - 2011-02-18) in cantarell-fonts. It seems to work
fine for me (Vietnamese). Thanks!
-- 
Duy


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