[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

[fontConfig]Language based font selection



Title: Samsung Enterprise Portal mySingle

Hi

I have many fonts which support "en", but I want to select specific font based on lang element i.e. "en" .

Default LANG variable is en-US.UTF8

 

My fonts.conf look like this

<match target="pattern">
               <test name="lang">
                   <string>en-US</string>
               </test>
               <edit name="family" mode="assign">
                   <string>Arial</string>
                </edit>
     </match>

but still when I debug , I found element "family" was "serif" not "Arial". 

Am  I doing something wrong ?

 

My understanding of code says :

Lang element was added into FcPattern once FcConfigSubstitute was over, i.e. test condition didnt match because lang element

was not available at all.

 

What should I configure in fonts.conf to make  such selection ?

 

Regards

Neha Gupta

 

Samsung India Software Center(SISC),

 

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Legacy]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux