Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 1729  / 3 Years ago, thu, june 24, 2021, 12:00:38

How can I find out which fonts on my system include coverage of a certain character, for example, U+2192?



I've tried looking in Character Map, but I don't see a way to query fonts by character, only characters by font.


More From » fonts

 Answers
5

For installed fonts which have the Unicode character U+2192, you could use fc-list:


fc-list :charset=2192

Example output:



/usr/local/share/fonts/consolas/consolab.ttf: Consolas:style=Bold
/usr/local/share/fonts/consolas/consolai.ttf: Consolas:style=Italic
/usr/local/share/fonts/consolas/consola.ttf: Consolas:style=Regular
/usr/local/share/fonts/consolas/consolaz.ttf: Consolas:style=Bold Italic
/usr/share/fonts/opentype/cantarell/Cantarell-Bold.otf: Cantarell:style=Bold
/usr/share/fonts/opentype/cantarell/Cantarell-ExtraBold.otf: Cantarell,Cantarell Extra Bold:style=Extra Bold,Regular
...
/usr/share/texmf/fonts/opentype/public/lm/lmsansquot8-oblique.otf: Latin Modern Sans Quotation,LM Sans Quot 8:style=8 Oblique,Bold Italic
/usr/share/texmf/fonts/opentype/public/lm/lmsansquot8-regular.otf: Latin Modern Sans Quotation,LM Sans Quot 8:style=8 Regular,Regular
/usr/share/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf: Latin Modern Math:style=Regular


For formatting the output, there is also a poorly documented -f format option. See man FcPatternFormat and the fontconfig documentation page which has a list of some available properties.


For example:


fc-list -f "%{file}
%{family}
" :charset=2192

[#28663] Friday, June 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
naldis

Total Points: 257
Total Questions: 101
Total Answers: 111

Location: Kenya
Member since Sat, Feb 25, 2023
1 Year ago
naldis questions
;