Users browsing this thread: 1 Guest(s)
venam
Administrators
(11-08-2020, 07:00 AM)vain Wrote: Wasn’t there a command line utility of fontconfig that could show you which font is used to display a certain character? I don’t remember anymore. Would be interesting.

There's the script found here, that'll I'll paste:

Code:
#!/bin/sh
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"

Beware that printf with \U isn't POSIX, so run it like this
Code:
bash ./ls-chars 'monospace'


Messages In This Thread
Font Fallback - by venam - 11-08-2020, 04:35 AM
RE: Font Fallback - by z3bra - 11-08-2020, 04:51 AM
RE: Font Fallback - by movq - 11-08-2020, 07:00 AM
RE: Font Fallback - by venam - 11-08-2020, 08:26 AM
RE: Font Fallback - by movq - 11-08-2020, 11:02 AM
RE: Font Fallback - by seninha - 16-08-2020, 06:39 PM
RE: Font Fallback - by venam - 17-08-2020, 02:30 AM