font metrics

  • Thread starter Thread starter Amerio
  • Start date Start date
A

Amerio

Hello,
Given a Font object, how can I extract ALL font metrics, including
characters metrics (possibly including kerning pairs) ?
 
It's not possible to do this diretly with the .NET framework.

You can use interop to obtain more information than is available from the
GDI+ Font object but when I had to tackle this same problem a while ago I
ended up writing a font program decoder that read the font tables directly.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Check out February's edition of Well Formed.
Non-client drawing, Graphics Transform stack and Flood-Filling
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com
 
It's not possible to do this diretly with the .NET framework.

You can use interop to obtain more information than is available from the
GDI+ Font object but when I had to tackle this same problem a while ago I
ended up writing a font program decoder that read the font tables
directly.


Ok, I give up trying to do this simple task in Win32 or NET.
I've finally done it with freetype2 (www.freetype.org) in less time than I
spent searching for a "native" solution.
 
Back
Top