AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

EnumFontFamiliesEx

The EnumFontFamiliesEx function enumerates all fonts in the system that match the font characteristics specified by the LOGFONT structure. EnumFontFamiliesEx enumerates fonts based on typeface name, character set, or both.

VB4-32,5,6
Declare Function EnumFontFamiliesEx Lib "gdi32" Alias "EnumFontFamiliesExA" (ByVal hdc As Long, lpLogFont As LOGFONT, ByVal lpEnumFontProc As Long, ByVal lParam As Long, ByVal dw As Long) As Long

VB.NET
System.Drawing.Text.FontCollection.Families

Operating Systems Supported
Requires Windows NT 4.0 or later; Requires Windows 95 or later

Library
Gdi32

Parameter Information
hdc
Identifies the device context.

lpLogfont
Points to a LOGFONT structure that contains information about the fonts to enumerate. The function examines these members:
lfCharset
If set to DEFAULT_CHARSET, the function enumerates all fonts in all character sets. If set to a valid character set value, the function enumerates only fonts in the specified character set.
lfFaceName
If set to an empty string, the function enumerates one font in each available typeface name. If set to a valid typeface name, the function enumerates all fonts with the specified name.
lfPitchAndFamily
Must be set to zero for all language versions of the operating system except Hebrew and Arabic. For these languages, set IfPitchAndFamily to MONO_FONT to enumerate only fonts that provide all codepage characters within the font.

lpEnumFontFamExProc
Points to the application-defined callback function. For more information about the callback function, see the EnumFontFamExProc function.

lParam
Specifies a 32-bit application-defined value. The function passes this value to the callback function along with font information.

dwFlags
Reserved; must be zero.

Return Values
If the function succeeds, the return value is the last value returned by the callback function. This value depends on which font families are available for the specified device.

Examples

Related Functions

No VB.NET Example Found

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/