Public Const LF_FACESIZE = 32 Public Const LF_FULLFACESIZE = 64
Private 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 * LF_FACESIZE End Type
Private Type TEXTMETRIC 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 End Type
Private Declare Function EnumFontFamiliesEx _ Lib "gdi32" _ Alias "EnumFontFamiliesExA" _ ( _ ByVal hdc As Long, _ lpLogfont As LOGFONT, _ ByVal lpEnumFontFamExProc As Long, _ ByVal LParam As Long, _ ByVal dwFlags As Long _ ) _ As Long
Private Declare Function GetDC _ Lib "user32" _ ( _ ByVal hWnd As Long _ ) _ As Long
Public Const LF_FACESIZE = 32
Public Const LF_FULLFACESIZE = 64
Private 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 * LF_FACESIZE
End Type
Private Type TEXTMETRIC
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
End Type
Private Declare Function EnumFontFamiliesEx _
Lib "gdi32" _
Alias "EnumFontFamiliesExA" _
( _
ByVal hdc As Long, _
lpLogfont As LOGFONT, _
ByVal lpEnumFontFamExProc As Long, _
ByVal LParam As Long, _
ByVal dwFlags As Long _
) _
As Long
Private Declare Function GetDC _
Lib "user32" _
( _
ByVal hWnd As Long _
) _
As Long
Public Const LF_FACESIZE = 32 Public Const LF_FULLFACESIZE = 64
Private 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 * LF_FACESIZE End Type
Private Type TEXTMETRIC 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 End Type
Private Declare Function EnumFontFamiliesEx _ Lib "gdi32" _ Alias "EnumFontFamiliesExA" _ ( _ ByVal hdc As Long, _ lpLogfont As LOGFONT, _ ByVal lpEnumFontFamExProc As Long, _ ByVal LParam As Long, _ ByVal dwFlags As Long _ ) _ As Long
Private Declare Function GetDC _ Lib "user32" _ ( _ ByVal hWnd As Long _ ) _ As Long