"The code is exactly
how I would like to write code and the algorithms used are very
efficient and well-documented."
Van T. Dinh, Microsoft MVP
|
|
Module: modFont
Enumerating the fonts installed on the system, and converting between points and height
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the modFont module
|
|
ConvertScale
|
Procedure
|
Converts between pixels, twips and points
|
|
EnumFontFamProc
|
Procedure
|
This function should never be called directly by user code. It is used as a callback function for the Windows API EnumFontFamilies function.
See the Windows SDK for more documentation on this procedure
|
|
GetFonts
|
Procedure
|
Enumerate the fonts installed on a system, returning the list of fonts in the array
|
|
HeightToPoints
|
Procedure
|
Convert a font height to a font point size.
The font height is measured in logical device units. Most windows API functions for dealing with fonts require the font height in logical units. This function only works correctly in the MM_TEXT mapping mode.
|
|
PointsToHeight
|
Procedure
|
Convert a font point size to a font height.
The font height is measured in logical device units. Most windows API functions for dealing with fonts require the font height in logical units. This function only works correctly in the MM_TEXT mapping mode.
|
Overview of Total Visual SourceBook
The source code in Total Visual
SourceBook includes modules and classes for Microsoft Access, Visual
Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily
add this professionally written, tested, and documented royalty-free code
into your applications to simplify your application development efforts.
Additional Resources
|
|