in reply to getting a list of all font elements by font family name

$ xlsfonts -lll -fn -misc-symbola-medium-r-semicondensed--0-0-0-0-p-0- +*-* |\ perl -ne'($a,$b)=/^\s+0x\w+\s+\((\d+)\)((?:\s+\d+)+)\s+0x\w+/ and$b= +~/[1-9]/ and$fcp{$a}++}END{printf"0x%04X ",$_ for sort{$a<=>$b}keys%f +cp' 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 002A 002B 002C 002D +002E 002F 0030 ... 2E25 2E26 2E27 2E28 2E29 2E2A 2E2B 2E2C 2E2D 2E2E 2E2F 2E30 2E31 2E32 +2E33 2E34 2E35 2E36 2E37 2E38 2E39 2E3A 2E3B 2E3C 2E3D 2E3E 2E3F 4DC0 4DC1 4DC2 4DC3 +4DC4 4DC5 4DC6 4DC7 4DC8 4DC9 4DCA 4DCB 4DCC 4DCD 4DCE 4DCF 4DD0 4DD1 4DD2 4DD3 4DD4 +4DD5 4DD6 4DD7 4DD8 4DD9 4DDA 4DDB 4DDC 4DDD 4DDE 4DDF 4DE0 4DE1 4DE2 4DE3 4DE4 4DE5 +4DE6 4DE7 4DE8 4DE9 4DEA 4DEB 4DEC 4DED 4DEE 4DEF 4DF0 4DF1 4DF2 4DF3 4DF4 4DF5 4DF6 +4DF7 4DF8 4DF9 4DFA 4DFB 4DFC 4DFD 4DFE 4DFF FFF9 FFFA FFFB FFFC FFFD

update: fixed command line and shortened the output.

FWIW my xlsfonts does not show the code points above 0xFFFF at all :(


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^2: getting a list of all font elements by font family name
by zentara (Cardinal) on Aug 01, 2011 at 12:45 UTC
    Hi, thanks for that command string, but on my Slackware system, even though I have the Symbola font installed and is working, it dosn't show up in the xlsfonts output. Maybe it's because I don't have a font server running?

    Oops, I see I need to take the name out of /usr/share/fonts/truetype/fontdir


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh

      What I did with the .ttf from that zip:

      $ chdir ~/.fonts $ mv /tmp/Symbola605.ttf . $ mkfontscale $ mkfontdir $ fc-cache $ sudo /etc/init.d/xfs restart

      And yes, I have my ~/.fonts directory in the font server list (/etc/X11/fs/config).


      Enjoy, Have FUN! H.Merijn