You are not logged in.

#1 2012-11-04 05:43:02

Vrantheo
Member
Registered: 2012-07-20
Posts: 33

Fontconfig matching incorrect Roboto font styles

Default fontconfig installation without personal tweaking, then I have ttf-roboto from AUR:

Roboto-Black.ttf
Roboto-BlackItalic.ttf
Roboto-Bold.ttf
Roboto-BoldCondensed.ttf
Roboto-BoldCondensedItalic.ttf
Roboto-BoldItalic.ttf
Roboto-Condensed.ttf
Roboto-CondensedItalic.ttf
Roboto-Italic.ttf
Roboto-Light.ttf
Roboto-LightItalic.ttf
Roboto-Medium.ttf
Roboto-MediumItalic.ttf
Roboto-Regular.ttf
Roboto-Thin.ttf
Roboto-ThinItalic.ttf

Whenever I specify "Roboto" in any font-related settings (Chrome, gnome-tweak-tool, etc), it redirects itself to the much too bolder style "Roboto-Medium" instead of the normal "Roboto-Regular".

"fc-match Roboto -v" results:

Pattern has 34 elts (size 48)
	family: "Roboto"(s)
	familylang: "en"(s)
	style: "Medium"(s)
	stylelang: "en"(s)
	fullname: "Roboto Medium"(s)
	fullnamelang: "en"(s)
	slant: 0(i)(s)
	weight: 100(i)(s)
	width: 100(i)(s)
	size: 12(f)(s)
	pixelsize: 12.5(f)(s)
	foundry: "unknown"(s)
	antialias: FcTrue(w)
	hintstyle: 3(i)(s)
	hinting: FcFalse(w)
	verticallayout: FcFalse(s)
	autohint: FcFalse(s)
	globaladvance: FcTrue(s)
	file: "/usr/share/fonts/TTF/Roboto-Medium.ttf"(s)
	index: 0(i)(s)
	outline: FcTrue(s)
	scalable: FcTrue(s)
	dpi: 75(f)(s)
	rgba: 1(i)(w)
	scale: 1(f)(s)
	charset: 
	0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffffff ffffffff ffffffff
	0001: ffffffff ffffffff ffffffff ffffffff 00040000 00018003 00000000 fc010000
	0002: 03000000 00800000 00000000 00000000 00000000 10000000 3f0002c0 00080000
	0003: 0000820b 00000008 00000000 00000000 ffffd7f0 fffffffb 00467fff 00000000
	0004: ffffffff ffffffff ffffffff ffffffff ffffff7f ffffffff ffffffff ffffffff
	0005: 000fffff 00000000 00000000 00000000 00000000 00000000 00000000 00000000
	001e: 00000003 c0000000 00000000 00000000 0000003f ffffffff ffffffff 03ffffff
	001f: 00000000 00000000 00002000 00000000 00000000 00000000 00000000 00000000
	0020: 7fb80fff 160d0067 00000010 80100000 00000000 00001898 00000000 00000000
	0021: 00480020 00004044 78000000 00000000 00000000 00000000 00000000 00000000
	0022: 44068044 00000800 00000100 00000031 00000000 00000000 00000000 00000000
	0025: 00000000 00000000 00000000 00000000 00000000 00000000 00000400 00000000
	00f6: 00000000 00000000 00000000 00000000 00000000 00000000 00000008 00000000
	00fb: 0000001e 00000000 00000000 00000000 00000000 00000000 00000000 00000000
	00fe: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 80000000
	00ff: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 30000000
(s)
	lang: aa|ab|af|av|ay|ba|be|bg|bi|bin|br|bs|bua|ca|ce|ch|chm|co|cs|cu|cv|cy|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gn|gv|ho|hr|hu|ia|ig|id|ie|ik|io|is|it|kaa|ki|kk|kl|kum|kv|ky|la|lb|lez|lt|lv|mg|mh|mk|mt|nb|nds|nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ru|sah|se|sel|sh|sk|sl|sma|smj|smn|so|sq|sr|ss|st|sv|sw|tg|tk|tl|tn|tr|ts|tt|tyv|uk|uz|vo|vot|wa|wen|wo|xh|yap|zu|an|crh|csb|fil|hsb|ht|jv|kj|ku-tr|kwm|lg|li|mn-mn|ms|na|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|ty|za(s)
	fontversion: 65536(i)(s)
	capability: "otlayout:DFLT"(s)
	fontformat: "TrueType"(s)
	embeddedbitmap: FcTrue(s)
	decorative: FcFalse(s)
	lcdfilter: 1(i)(w)
	namelang: "en"(s)

How do I write a .conf file to hardwire the matching rule back to Regular, or should I go for some other settings?

Offline

Board footer

Powered by FluxBB