fc-list :charset=1f63f | less
fc-list
fc-query /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf | less
fc-query "/home/kai/.fonts/Preeti Normal.otf"
Pattern has 25 elts (size 32)
family: "Preeti"(s)
familylang: "en"(s)
style: "Normal"(s)
stylelang: "en"(s)
fullname: "Preeti"(s)
fullnamelang: "en"(s)
slant: 0(i)(s)
weight: 80(f)(s)
width: 100(f)(s)
foundry: "unknown"(s)
file: "/home/kai/.fonts/Preeti Normal.otf"(s)
index: 0(i)(s)
outline: True(s)
scalable: True(s)
charset:
0000: 00000000 ffffffff ffffffff 7fffffff 00000000 80530caf ff447860 008000e0
0002: 00000000 00000000 00000000 00000000 00000000 00000000 10000040 00000000
0020: 41180000 06010044 00000000 00000000 00000000 00000000 00000000 00000000
(s)
lang: fj|ho|ia|io|nr|om|so|ss|st|sw|ts|uz|xh|zu|kj|kwm|ms|ng|rn|rw|sn|za(s)
fontversion: 65536(i)(s)
fontformat: "TrueType"(s)
decorative: False(s)
postscriptname: "Preeti"(s)
color: False(s)
symbol: False(s)
variable: False(s)
fonthashint: True(s)
order: 0(i)(s)
The fontconfig
commands can output the glyph list as a compact list of ranges, eg:
Use fc-query
for a .ttf
file and fc-match
for an installed font name.
fc-query --format='%{charset}\n' "/home/kai/.fonts/Preeti Normal.otf"
20-7e a0-a3 a5 a7 aa-ab b0-b1 b4 b6 bf c5-c6 cb-ce d2 d6 d8-df e5-e7 f7 2c6 2dc 2013-2014 2018 201e 2022 2026 2030 2039-203a
list-font
#!/bin/bash
for range in $(fc-match --format='%{charset}\n' "$1"); do
for n in $(seq "0x${range%-*}" "0x${range#*-}"); do
printf "%04x\n" "$n"
done
done | while read -r n_hex; do
count=$((count + 1))
printf "%-5s\U$n_hex\t" "$n_hex"
[ $((count % 10)) = 0 ] && printf "\n"
done
printf "\n"
bash list-font font.otf
Comments
Post a Comment