title: How to read and print the contents of a ttf file?
body: <p>Is there any way that I can open, read and write a ttf file?</p>
  
  <p>Example: </p>
  
  <pre><code>with open('xyz.ttf') as f:
      content = f.readline()
      print(content)
  </code></pre>
  
  <p>A bit more:
  If I open a .ttf (font) file with windows font viewer we see the following image
  <a href="https://i.stack.imgur.com/VDPgp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VDPgp.png" alt="a .ttf (font) file open with windows font viewer"></a></p>
  
  <p>From this I like to extract following lines as text, with proper style.
  <a href="https://i.stack.imgur.com/xRoKC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xRoKC.png" alt="portion of .ttf (font) file open with windows font viewer"></a></p>