On Friday 15 February 2013 02:57:12 PM IST, Nilesh Govindrajan wrote: > Hi, > > I installed media-fonts/roboto from asux overlay and configured > /etc/fonts/local.conf as follows: > > <?xml version="1.0"?> > <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> > <fontconfig> > <match target="font"> > <edit mode="assign" name="hinting"> > <bool>true</bool> > </edit> > </match> > <match target="font"> > <edit mode="assign" name="hintstyle"> > <const>hintslight</const> > </edit> > </match> > <match target="font"> > <edit mode="assign" name="antialias"> > <bool>true</bool> > </edit> > </match> > <match target="font"> > <test qual="any" name="size" compare="less"> > <double>9.0</double> > </test> > <edit name="size" mode="assign"> > <double>9.0</double> > </edit> > </match> > <match target="font"> > <test qual="any" name="size" compare="less"> > <double>10.0</double> > </test> > <test qual="any" name="family"> > <string>monospace</string> > </test> > <edit name="size" mode="assign"> > <double>10.0</double> > </edit> > </match> > <alias> > <family>serif</family> > <default> > <family>Roboto</family> > </default> > </alias> > <alias> > <family>sans-serif</family> > <default> > <family>Roboto</family> > </default> > </alias> > <alias> > <family>monospace</family> > <default> > <family>Monaco</family> > </default> > </alias> > </fontconfig> > > And these are the symlinks in /etc/fonts/conf.d - > 10-autohint.conf 10-sub-pixel-rgb.conf 11-lcdfilter-default.conf > 49-sansserif.conf 50-user.conf 51-local.conf 66-lohit-hindi.conf > 66-lohit-marathi.conf > > But I'm facing a weird issue with the Roboto font. It matches by default > to Roboto Medium, but I don't want that. Titlebar, Menubar and Toolbar > texts look bold. Even the mail list in Thunderbird looks bold so I can't > distinguish between read and unread mail easily. > > $ fc-match Roboto > Roboto-Medium.ttf: "Roboto" "Medium" > > How to fix this? There are no user configuration files and I have > configured KDE to use default system settings (sansserif, monospace > families). >
Solution - <selectfont> <rejectfont> <pattern> <patelt name="family"><string>Roboto Lt</string></patelt> <patelt name="weight"><int>100</int></patelt> </pattern> <pattern> <patelt name="family"><string>Roboto Bk</string></patelt> </pattern> </rejectfont> </selectfont> -- Nilesh Govindarajan http://nileshgr.com