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.

terdon
  • 104,119
sergej
  • 660

1 Answers1

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

sergej
  • 660