<div dir="ltr">Hi,<div><br></div><div>I was trying to make xterm use some particular font, namely Terminus. I managed to do so with "font" X resource:</div><div><br></div><div>    xterm*font: -*-terminus-medium-r-*--20-*-*-*-*-*-iso10646-*</div><div><br></div><div>But I wonder if I could achieve the same result with "faceName" resource. I tried it this way (according to tutorial at <a href="http://keithp.com/~keithp/render/Xft.tutorial">http://keithp.com/~keithp/render/Xft.tutorial</a>):</div><div><br></div><div>    xterm*faceName: Terminus:encoding=iso10646-1</div><div><br></div><div>But it chooses ter-112n.pcf.gz (-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-1) font. Or so fc-match says. Surprisingly, fc-pattern says:</div><div><br></div><div>    $ fc-pattern Terminus:encoding=iso10646-1</div><div>    Pattern has 2 elts (size 16)</div><div>            family: "Terminus"(s)</div><div>            encoding: <unknown>(s)</div><div><br></div><div>Not sure what exactly this means. fc-query for the file I'd like it to use outputs:<br></div><div><br></div><div><div>    $ fc-query /usr/share/fonts/misc/ter-x20n.pcf.gz</div><div>    Pattern has 20 elts (size 32)</div><div>            family: "Terminus"(s)</div><div>            style: "Regular"(s)</div><div>            slant: 0(i)(s)</div><div>            weight: 80(i)(s)</div><div>            width: 100(i)(s)</div><div>            pixelsize: 20(f)(s)</div><div>            spacing: 110(i)(s)</div><div>            foundry: "xos4"(s)</div><div>            antialias: False(s)</div><div>            file: "/usr/share/fonts/misc/ter-x20n.pcf.gz"(s)</div><div>            index: 0(i)(s)</div><div>            outline: False(s)</div><div>            scalable: False(s)</div><div>            charset: </div><div>            0000: ffffffff ffffffff ffffffff 7fffffff 00000000 ffffffff ffffffff ffffffff</div><div>            0001: ffffffff ffffffff ffffffff ff3fffff 6005c040 00800000 00000000 00000000</div><div>            0002: 0f000000 008c0000 0b100000 00040000 00040000 38000000 3b0000c0 00000000</div><div>            0003: 0000104f 00000200 00000000 00000000 ffffd7f0 fffffffb 00007fff 00180000</div><div>            0004: ffffffff ffffffff ffffffff 00000000 3fff0000 0fcfcc3f ffff0000 033ffffc</div><div>            001e: 00000000 00300000 00000000 00000000 00000000 33000000 00003c00 03000030</div><div>            0020: ffff07ff 560d0047 00000000 80000000 00000000 00005080 00000000 00000000</div><div>            0021: 0040c000 00000044 00000000 00000000 003f0000 00200100 003f0000 00000000</div><div>            0022: c6040568 00000780 00000100 00000033 00000000 00000000 00000000 00000000</div><div>            0023: 00010005 00000003 00000000 00000000 00000000 3c000000 00000000 00000000</div><div>            0024: 00003e00 00000010 00000000 00000000 00000000 00000000 00000000 00000000</div><div>            0025: ffffff0f ffffffff ffff0fff fff1ffff ffcfffff 10445001 03008c41 00000000</div><div>            0026: 00000000 1c000000 00000005 00000c69 00000000 00000000 00000000 00000000</div><div>            0027: 01980000 00000000 00000000 00000000 00000000 00000000 00000000 00000000</div><div>            00e0: 00000000 00000000 00000000 00000000 00000000 000f0007 00000000 00000000</div><div>            00f6: 00000000 00000000 00000000 00000000 00000000 40000000 00000000 00000000</div><div>            00ff: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 20000000</div><div>    (s)</div><div>            lang: aa|af|av|ay|az-az|ba|bm|be|bg|bi|bin|br|bs|bua|ca|ce|ch|chm|co|cs|cv|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gn|gv|haw|ho|hr|hu|ia|ig|id|ie|ik|io|is|it|kaa|ki|kk|kl|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|pt|rm|ro|ru|sah|se|sel|sh|sk|sl|sm|sma|smj|smn|so|sq|sr|ss|st|sv|sw|tg|tk|tl|tn|to|tr|ts|tt|tw|tyv|uk|uz|vo|vot|wa|wen|wo|xh|yap|zu|ak|an|crh|csb|fat|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)</div><div>            fontversion: 0(i)(s)</div><div>            fontformat: "PCF"(s)</div><div>            decorative: False(s)</div><div>            hash: "sha256:5b0df9eaed92cca3d962b4aa612614718bfdbbafcc4b42240a28bf3faa3c80bd"(s)</div><div>            postscriptname: "Terminus"(s)</div></div><div><br></div><div>Does this mean I can't match this font by encoding? Is this possible for any other font? You may answer here if you so wish: <a href="http://unix.stackexchange.com/questions/179802/how-do-i-fc-match-font-of-some-particular-encoding">http://unix.stackexchange.com/questions/179802/how-do-i-fc-match-font-of-some-particular-encoding</a><br></div><div><br></div><div>Regards,</div><div>Yuri</div></div>