This is an old revision of the document!
# sudo apt install lcdf-typetools # or on Mac # brew install lcdf-typetools
$ otfinfo -u /usr/share/fonts/truetype/Arial/arial.ttf | head uni0020 3 space uni0021 4 exclam uni0022 5 quotedbl uni0023 6 numbersign uni0024 7 dollar ... uniFEF9 1017 afii62838 uniFEFA 1018 afii62839 uniFEFB 1019 afii62840 uniFEFC 1020 afii62841 uniFFFC 863 uniFFFC uniFFFF 0 .notdef
$ sudo apt install libfont-freetype-perl
$ perl -C -MFont::FreeType -e 'Font::FreeType->new->face(shift)->foreach_char( sub { $c=$_->char_code(); printf "%04X %s\n", $c, chr($c); } );' /usr/share/fonts/truetype/Arial/arial.ttf 0020 0021 ! 0022 " 0023 # 0024 $ 0025 % 0026 & 0027 ' ... FEFA ﻺ FEFB ﻻ FEFC ﻼ FFFC 
View unicode codepoints for all letters in file on bash
file="some-file.txt"
perl -C -ne 'for (split //) {printf "U+%04X %s\n", ord, $_}' "$file" | sort -u iconv -f utf8 -t utf32le "$file" | hexdump -v -e '"U+%04X\n"' | sort -u while IFS= read -d $'\000' -n 1 x; do printf 'U+%04X %s\n' "'$x" "$x"; done < "$file" | sort -u