title: How to get a glyph width from a ttf font using bash?
body: <p><a href="https://i.stack.imgur.com/1zg1I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1zg1I.png" alt="width of a glyph"></a></p>
  
  <p>How to extract this number 1139 from the font file using bash?</p>
  
  <p>otfinfo can show a list of glyphs.</p>
  
  <pre><code>otfinfo --glyphs *.ttf
  </code></pre>
  
  <p>I want to get info about each glyph something like this page:</p>
  
  <p><a href="http://bluejamesbond.github.io/CharacterMap/" rel="nofollow noreferrer">http://bluejamesbond.github.io/CharacterMap/</a></p>
  
  <p>But with bash.</p>
  
  <p>I found that fontforge can do it,</p>
  
  <p><a href="https://stackoverflow.com/questions/20955954">Get glyph widths by fontforge script</a></p>