aliasing font-family fails -- still maps to arial.ttf after config

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

 



I'm attempting to alias a font.

I want "Roboto-Regular" used/rendered for "Lucida Grande".

The font's installed

	rpm -qa google-roboto-fonts
		google-roboto-fonts-20161103.2.135-lp150.43.8.noarch
	rpm -ql google-roboto-fonts | grep Roboto-Regular
		/usr/share/fonts/truetype/Roboto-Regular.ttf

Lucida Grande does not exist on this machine.

FC is installed

	rpm -q --whatprovides /usr/sbin/fonts-config
		fonts-config-20190119-lp150.1.1.noarch

	fonts-config --version
		fonts-config 20150424

As my user

	whoami
		desk04

initial map is

	fc-match "Lucida Grande"
		arial.ttf: "Arial" "Regular"

verifying Roboto-*'s font family

	fc-query /usr/share/fonts/truetype/Roboto-Regular.ttf | grep -i family:
		family: "Roboto"(s)

in local FC config

	cat << EOF > /home/desk04/.config/fontconfig/fonts.conf
	<fontconfig>

	 <match target="pattern">
	  <test qual="any" name="family">
	   <string>Lucida Grande</string>
	  </test>
	  <edit name="family" mode="assign" binding="same">
	   <string>Roboto</string>
	  </edit>
	 </match>

	</fontconfig>
	EOF

rescan/refresh

	fonts-config --user --force --debug --ttcap --java
	fc-cache --really-force --verbose

Lucida Grande *still* maps to Arial, not Roboto-*

	fc-match "Lucida Grande"
		arial.ttf: "Arial" "Regular"

and

	FC_DEBUG=1 fc-match "Lucida Grande"
		FC_DEBUG=1
		Match Pattern has 32 elts (size 48)
		        family: "Roboto-Regular"(s) "Arial"(w) "Albany AMT"(w) "Verdana"(w) "Roboto"(w) "Noto Kufi Arabic"(w) "Noto Naskh Arabic"(w) "Noto Sans"(w) "Noto Sans Armenian"(w) "Noto Sans Avestan"(w) "Noto Sans Balinese"(w) "Noto Sans Bamum"(w) "Noto Sans Batak"(w) "Noto Sans Bengali"(w) "Noto Sans Brahmi"(w) "Noto Sans Buginese"(w) "Noto Sans Buhid"(w) "Noto Sans Canadian Aboriginal"(w) "Noto Sans Carian"(w) "Noto Sans Cherokee"(w) "Noto Sans Coptic"(w) "Noto Sans Cypriot"(w) "Noto Sans Deseret"(w) "Noto Sans Devanagari"(w) "Noto Sans Egyptian Hieroglyphs"(w) "Noto Sans Ethiopic"(w) "Noto Sans Georgian"(w) "Noto Sans Glagolitic"(w) "Noto Sans Gothic"(w) "Noto Sans Gujarati"(w) "Noto Sans Gurmukhi"(w) "Noto Sans Hanunoo"(w) "Noto Sans Hebrew"(w) "Noto Sans Imperial Aramaic"(w) "Noto Sans Inscriptional Pahlavi"(w) "Noto Sans Inscriptional Parthian"(w) "Noto Sans JP"(w) "Noto Sans Javanese"(w) "Noto Sans Kaithi"(w) "Noto Sans Kannada"(w) "Noto Sans Kayah Li"(w) "Noto Sans Kharoshthi"(w) "Noto Sans KR"(w) "Noto Sans Lao"(w) "Noto Sans Lepcha"(w) "Noto Sans Limbu"(w) "Noto Sans Linear B"(w) "Noto Sans Lisu"(w) "Noto Sans Lycian"(w) "Noto Sans Lydian"(w) "Noto Sans Malayalam"(w) "Noto Sans Mandaic"(w) "Noto Sans Meetei Mayek"(w) "Noto Sans Mongolian"(w) "Noto Sans Myanmar"(w) "Noto Sans New Tai Lue"(w) "Noto Sans NKo"(w) "Noto Sans Ogham"(w) "Noto Sans Old Italic"(w) "Noto Sans Old Persian"(w) "Noto Sans Old South Arabian"(w) "Noto Sans Old Turkic"(w) "Noto Sans Ol Chiki"(w) "Noto Sans Osmanya"(w) "Noto Sans Phags-pa"(w) "Noto Sans Phoenician"(w) "Noto Sans Rejang"(w) "Noto Sans Runic"(w) "Noto Sans Samaritan"(w) "Noto Sans Saurashtra"(w) "Noto Sans Shavian"(w) "Noto Sans Sinhala"(w) "Noto Sans Sumero-Akkadian Cuneiform"(w) "Noto Sans Sundanese"(w) "Noto Sans Syloti Nagri"(w) "Noto Sans Symbols"(w) "Noto Sans Syriac Eastern"(w) "Noto Sans Syriac Estrangela"(w) "Noto Sans Syriac Western"(w) "Noto Sans SC"(w) "Noto Sans Tagalog"(w) "Noto Sans Tagbanwa"(w) "Noto Sans Tai Le"(w) "Noto Sans Tai Tham"(w) "Noto Sans Tai Viet"(w
) "Noto Sans Tamil"(w) "Noto Sans Telugu"(w) "Noto Sans Thai"(w) "Noto Sans Tifinagh"(w) "Noto Sans TC"(w) "Noto Sans Ugaritic"(w) "Noto Sans Vai"(w) "Noto Sans Yi"(w) "Liberation Sans"(w) "Droid Sans"(w) "Arimo"(w) "Cantarell"(w) "SUSE Sans"(w) "Bitstream Vera Sans"(w) "Nimbus Sans L"(w) "Luxi Sans"(w) "Mukti Narrow"(w) "KacstBook"(w) "Nachlieli CLM"(w) "Helvetica"(w) "Khmer OS System"(w) "Lohit Punjabi"(w) "Lohit Oriya"(w) "Pothana2000"(w) "TSCu_Paranar"(w) "BPG Glaho"(w) "Terafik"(w) "FreeSans"(w) "Meiryo"(w) "MS PGothic"(w) "MS Gothic"(w) "HGPGothicB"(w) "HGGothicB"(w) "IPAPGothic"(w) "IPAGothic"(w) "IPAexGothic"(w) "VL PGothic"(w) "VL Gothic"(w) "Sazanami Gothic"(w) "Kochi Gothic"(w) "CMEXSong"(w) "FZSongTi"(w) "WenQuanYi Micro Hei"(w) "WenQuanYi WenQuanYi Bitmap Song"(w) "WenQuanYi Zen Hei"(w) "AR PL ShanHeiSun Uni"(w) "FZMingTiB"(w) "AR PL SungtiL GB"(w) "AR PL Mingti2L Big5"(w) "NanumGothic"(w) "UnDotum"(w) "Baekmuk Gulim"(w) "Baekmuk Dotum"(w) "Bitstream Vera Sans"(w) "DejaVu Sans"(w) "Verdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Nimbus Sans"(w) "Helvetica"(w) "Lucida Sans Unicode"(w) "BPG Glaho International"(w) "Tahoma"(w) "Nachlieli"(w) "Lucida Sans Unicode"(w) "Yudit Unicode"(w) "Kerkis"(w) "ArmNet Helvetica"(w) "Artsounk"(w) "BPG UTF8 M"(w) "Waree"(w) "Loma"(w) "Garuda"(w) "Umpush"(w) "Saysettha Unicode"(w) "JG Lao Old Arial"(w) "GF Zemen Unicode"(w) "Pigiarniq"(w) "B Davat"(w) "B Compset"(w) "Kacst-Qr"(w) "Urdu Nastaliq Unicode"(w) "Raghindi"(w) "Mukti Narrow"(w) "malayalam"(w) "Sampige"(w) "padmaa"(w) "Hapax Berbère"(w) "MS Gothic"(w) "UmePlus P Gothic"(w) "Microsoft YaHei"(w) "Microsoft JhengHei"(w) "WenQuanYi Zen Hei"(w) "WenQuanYi Bitmap Song"(w) "AR PL ShanHeiSun Uni"(w) "AR PL New Sung"(w) "MgOpen Modata"(w) "VL Gothic"(w) "IPAMonaGothic"(w) "IPAGothic"(w) "Sazanami Gothic"(w) "Kochi Gothic"(w) "AR PL KaitiM GB"(w) "AR PL KaitiM Big5"(w) "AR PL ShanHeiSun Uni"(w) "AR PL SungtiL GB"(w) "AR PL Mingti2L Big5"(w) "MS ゴシック"(w) "ZYSong18030"(w) "TSCu_Parana
r"(w) "NanumGothic"(w) "UnDotum"(w) "Baekmuk Dotum"(w) "Baekmuk Gulim"(w) "KacstQura"(w) "Lohit Bengali"(w) "Lohit Gujarati"(w) "Lohit Hindi"(w) "Lohit Marathi"(w) "Lohit Maithili"(w) "Lohit Kashmiri"(w) "Lohit Konkani"(w) "Lohit Nepali"(w) "Lohit Sindhi"(w) "Lohit Punjabi"(w) "Lohit Tamil"(w) "Meera"(w) "Lohit Malayalam"(w) "Lohit Kannada"(w) "Lohit Telugu"(w) "Lohit Oriya"(w) "LKLUG"(w) "FreeSans"(w) "Arial Unicode MS"(w) "Arial Unicode"(w) "Code2000"(w) "Code2001"(w) "sans-serif"(w) "Roya"(w) "Koodak"(w) "Terafik"(w)
		        familylang: "en"(s) "en-us"(w)
		        stylelang: "en"(s) "en-us"(w)
		        fullnamelang: "en"(s) "en-us"(w)
		        slant: 0(i)(s)
		        weight: 80(i)(s)
		        width: 100(i)(s)
		        size: 12(f)(s)
		        pixelsize: 12.5(f)(s)
		        hintstyle: 1(i)(w)
		        hinting: True(s)
		        verticallayout: False(s)
		        autohint: False(s)
		        globaladvance: True(s)
		        dpi: 75(f)(s)
		        rgba: 1(i)(w)
		        scale: 1(f)(s)
		        lang: "en"(w)
		        fontversion: 2147483647(i)(s)
		        embeddedbitmap: True(s)
		        decorative: False(s)
		        lcdfilter: 1(i)(w)
		        namelang: "en"(s)
		        prgname: "fc-match"(s)
		        symbol: False(s)
		        variable: False(s)
		        force_hintstyle: "hintslight"(w)
		        force_autohint: False(w)
		        force_bw: False(w)
		        force_bw_monospace: False(w)
		        search_metric_aliases: True(w)
		        user_preference_list: True(w)

		Best score 0 0 0 0 0 0 0 1000 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 2.14715e+12
		Pattern has 24 elts (size 24)
		        family: "Arial"(w)
		        familylang: "en"(w)
		        style: "Normal"(w) "obyčejné"(w) "Standard"(w) "Κανονικά"(w) "Regular"(w) "Normaali"(w) "Normál"(w) "Normale"(w) "Standaard"(w) "Normalny"(w) "Обычный"(w) "Normálne"(w) "Navadno"(w) "thường"(w) "Arrunta"(w)
		        stylelang: "ca"(w) "cs"(w) "de"(w) "el"(w) "en"(w) "fi"(w) "hu"(w) "it"(w) "nl"(w) "pl"(w) "ru"(w) "sk"(w) "sl"(w) "vi"(w) "eu"(w)
		        fullname: "Arial"(w)
		        fullnamelang: "en"(w)
		        slant: 0(i)(w)
		        weight: 80(f)(w)
		        width: 100(f)(w)
		        foundry: "TMC "(w)
		        file: "/usr/local/share/fonts/MSWindowsTrueType/arial.ttf"(w)
		        index: 0(i)(w)
		        outline: True(w)
		        scalable: True(w)
		        charset:
		        0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffffff ffffffff ffffffff
		        0001: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
		        0002: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
		        0003: ffffffff ffffffff ffffffff 7c30ffff ffffd7f0 fffffffb ffff7fff ffffffff
		        0004: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
		        0005: 3c0fffff 00000000 00000000 00000000 fffe0000 ffffffff ffff00ff 001f07ff
		        0006: c83ff80f 07fffffe 7fffffff ffffffff ffffffff ffffffff ffffffff ffffffff
		        0007: 00000000 00000000 ffff0000 00003fff 00000000 00000000 00000000 00000000
		        001d: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 000007ff c0000000
		        001e: ffffffff ffffffff ffffffff ffffffff 4fffffff ffffffff ffffffff 03ffffff
		        001f: 3f3fffff ffffffff aaff3f3f 3fffffff ffffffff ffdfffff efcfffdf 7fdcffff
		        0020: fffcffff 561dfc47 40000010 8000fc00 001f0000 033fffff 00000000 00010000
		        0021: 00c80020 00004044 78186000 00000000 003f0010 00000100 00000000 00000000
		        0022: c6268044 00000a00 00000100 00000033 00000000 00000000 00000000 00000000
		        0023: 00010004 00000003 00000000 00000000 00000000 00000000 00000000 00000000
		        0025: 11111005 10101010 ffff0000 00001fff 000f1111 14041c03 03009c10 00000040
		        0026: 00000000 1c000000 00000005 00008c69 00000000 00000000 00000000 00000000
		        002c: 00000000 00000000 00000000 00fe3fff 00000000 00000000 00000000 00000000
		        002e: 00800000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
		        00a7: ff800000 00000003 00000000 00000000 00001f00 00000000 00000000 00000000
		        00fb: e0000006 5f7fffff ffffffdb ffffffff ffffffff 0003ffff fff80000 f00003ff
		        00fc: 00000000 00000000 c0000000 00000007 00000000 00000000 00000000 00000000
		        00fd: 00000000 c0000000 00000000 00000000 00000000 00000000 00000000 10040000
		        00fe: 00000000 0000000f 00000000 00000000 ffffffff ffffffff ffffffff 1fffffff
		        00ff: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 10000000
		(w)
		        lang: aa|ab|af|ar|ast|av|ay|az-az|az-ir|ba|bm|be|bg|bi|bin|br|bs|bua|ca|ce|ch|chm|co|cs|cu|cv|cy|da|de|el|en|eo|es|et|eu|fa|fi|fj|fo|fr|ff|fur|fy|ga|gd|gl|gn|gv|ha|haw|he|ho|hr|hu|ia|ig|id|ie|ik|io|is|it|kaa|ki|kk|kl|ku-am|ku-ir|kum|kv|kw|ky|la|lb|lez|ln|lt|lv|mg|mh|mi|mk|mo|mt|nb|nds|nl|nn|no|nr|nso|ny|oc|om|os|pl|ps-af|ps-pk|pt|rm|ro|ru|sah|sco|se|sel|sh|shs|sk|sl|sm|sma|smj|smn|sms|so|sq|sr|ss|st|sv|sw|tg|tk|tl|tn|to|tr|ts|tt|tw|tyv|ug|uk|ur|uz|ve|vi|vo|vot|wa|wen|wo|xh|yap|yi|yo|zu|ak|an|ber-dz|crh|csb|ee|fat|fil|hsb|ht|hz|jv|kab|kj|kr|ku-iq|ku-tr|kwm|lg|li|mn-mn|ms|na|ng|nv|ota|pa-pk|pap-an|pap-aw|qu|quz|rn|rw|sc|sd|sg|sn|su|ty|za|lah(w)
		        fontversion: 334234(i)(w)
		        capability: "otlayout:arab otlayout:cyrl otlayout:grek otlayout:hebr otlayout:latn"(w)
		        fontformat: "TrueType"(w)
		        decorative: False(w)
		        postscriptname: "ArialMT"(w)
		        color: False(w)
		        symbol: False(w)
		        variable: False(w)

		arial.ttf: "Arial" "Regular"

Is my config wrong, or incomplete?
What needs to change to get "Lucida Grande" to match "Roboto-Regular"?

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




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux