5

Using the command line, how can I check if a *.ttf file contains a certain character?

I want to know if the font-file Ubuntu-R.ttf contains the U+2007 (FIGURE SPACE) character.

1
  • 2
    There is a small python script that does that here.
    – Jos
    May 10, 2014 at 12:13

1 Answer 1

5
hb-shape /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf `echo -ne "\u2007"`

returns:

[space=0+231]

so the character is defined

Not the answer you're looking for? Browse other questions tagged .