1 |
On Friday 15 February 2013 02:57:12 PM IST, Nilesh Govindrajan wrote: |
2 |
> Hi, |
3 |
> |
4 |
> I installed media-fonts/roboto from asux overlay and configured |
5 |
> /etc/fonts/local.conf as follows: |
6 |
> |
7 |
> <?xml version="1.0"?> |
8 |
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> |
9 |
> <fontconfig> |
10 |
> <match target="font"> |
11 |
> <edit mode="assign" name="hinting"> |
12 |
> <bool>true</bool> |
13 |
> </edit> |
14 |
> </match> |
15 |
> <match target="font"> |
16 |
> <edit mode="assign" name="hintstyle"> |
17 |
> <const>hintslight</const> |
18 |
> </edit> |
19 |
> </match> |
20 |
> <match target="font"> |
21 |
> <edit mode="assign" name="antialias"> |
22 |
> <bool>true</bool> |
23 |
> </edit> |
24 |
> </match> |
25 |
> <match target="font"> |
26 |
> <test qual="any" name="size" compare="less"> |
27 |
> <double>9.0</double> |
28 |
> </test> |
29 |
> <edit name="size" mode="assign"> |
30 |
> <double>9.0</double> |
31 |
> </edit> |
32 |
> </match> |
33 |
> <match target="font"> |
34 |
> <test qual="any" name="size" compare="less"> |
35 |
> <double>10.0</double> |
36 |
> </test> |
37 |
> <test qual="any" name="family"> |
38 |
> <string>monospace</string> |
39 |
> </test> |
40 |
> <edit name="size" mode="assign"> |
41 |
> <double>10.0</double> |
42 |
> </edit> |
43 |
> </match> |
44 |
> <alias> |
45 |
> <family>serif</family> |
46 |
> <default> |
47 |
> <family>Roboto</family> |
48 |
> </default> |
49 |
> </alias> |
50 |
> <alias> |
51 |
> <family>sans-serif</family> |
52 |
> <default> |
53 |
> <family>Roboto</family> |
54 |
> </default> |
55 |
> </alias> |
56 |
> <alias> |
57 |
> <family>monospace</family> |
58 |
> <default> |
59 |
> <family>Monaco</family> |
60 |
> </default> |
61 |
> </alias> |
62 |
> </fontconfig> |
63 |
> |
64 |
> And these are the symlinks in /etc/fonts/conf.d - |
65 |
> 10-autohint.conf 10-sub-pixel-rgb.conf 11-lcdfilter-default.conf |
66 |
> 49-sansserif.conf 50-user.conf 51-local.conf 66-lohit-hindi.conf |
67 |
> 66-lohit-marathi.conf |
68 |
> |
69 |
> But I'm facing a weird issue with the Roboto font. It matches by default |
70 |
> to Roboto Medium, but I don't want that. Titlebar, Menubar and Toolbar |
71 |
> texts look bold. Even the mail list in Thunderbird looks bold so I can't |
72 |
> distinguish between read and unread mail easily. |
73 |
> |
74 |
> $ fc-match Roboto |
75 |
> Roboto-Medium.ttf: "Roboto" "Medium" |
76 |
> |
77 |
> How to fix this? There are no user configuration files and I have |
78 |
> configured KDE to use default system settings (sansserif, monospace |
79 |
> families). |
80 |
> |
81 |
|
82 |
Solution - |
83 |
|
84 |
<selectfont> |
85 |
<rejectfont> |
86 |
<pattern> |
87 |
<patelt name="family"><string>Roboto |
88 |
Lt</string></patelt> |
89 |
<patelt |
90 |
name="weight"><int>100</int></patelt> |
91 |
</pattern> |
92 |
<pattern> |
93 |
<patelt name="family"><string>Roboto |
94 |
Bk</string></patelt> |
95 |
</pattern> |
96 |
</rejectfont> |
97 |
</selectfont> |
98 |
|
99 |
|
100 |
-- |
101 |
Nilesh Govindarajan |
102 |
http://nileshgr.com |