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
  • 98,183
  • 15
  • 197
  • 293
sergej
  • 640
  • 1
  • 6
  • 16
  • 2
    There is a small python script that does that [here](http://stackoverflow.com/questions/4458696/finding-out-what-characters-a-font-supports). – Jos May 10 '14 at 12:13

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
  • 640
  • 1
  • 6
  • 16