freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] windows font related data types


From: Robb Hill
Subject: [Devel] windows font related data types
Date: Wed, 17 Oct 2001 01:27:52 -0400

Hi,

Does anyone on the list have any information on how the data types
associated with the information that can be retrieved by the
"EnumFontFamilies" API function in Windows relate to the typeface?  My issue
is this, "EnumFontFamilies" returns a LOGFONT and a NEWTEXTMETRIC.  They
contains items that are contained in both. e.g. Height, Width, Italic, etc.
Sometimes the values with the same name are not the same between the LOGFONT
a NEWTEXTMETRIC

So maybe my question is, how do these values actually map to the properties
of a typeface or is something wrong here?

Below are the types returned by "EnumFontFamilies".

Thanks,
Robb


Type LOGFONT
        lfHeight As Long
        lfWidth As Long
        lfEscapement As Long
        lfOrientation As Long
        lfWeight As Long
        lfItalic As Byte
        lfUnderline As Byte
        lfStrikeOut As Byte
        lfCharSet As Byte
        lfOutPrecision As Byte
        lfClipPrecision As Byte
        lfQuality As Byte
        lfPitchAndFamily As Byte
        lfFaceName As String * 32
End Type

Type NEWTEXTMETRIC
  tmHeight As Long
  tmAscent As Long
  tmDescent As Long
  tmInternalLeading As Long
  tmExternalLeading As Long
  tmAveCharWidth As Long
  tmMaxCharWidth As Long
  tmWeight As Long
  tmOverhang As Long
  tmDigitizedAspectX As Long
  tmDigitizedAspectY As Long
  tmFirstChar As Byte
  tmLastChar As Byte
  tmDefaultChar As Byte
  tmBreakChar As Byte
  tmItalic As Byte
  tmUnderlined As Byte
  tmStruckOut As Byte
  tmPitchAndFamily As Byte
  tmCharSet As Byte
  ntmFlags As Long
  ntmSizeEM As Long
  ntmCellHeight As Long
  ntmAveWidth As Long
End Type


Type ENUMLOGFONTEX
  elfLogFont As LOGFONT
  elfFullName As String * 64
  elfStyle As String * 32
  elfScript As String * 32
End Type




reply via email to

[Prev in Thread] Current Thread [Next in Thread]