 |
 |
 |
|
|  |  |
 |
CreateFont ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Creates a logical font with the specified characteristics. The logical font can subsequently be selected as the font for any device. |
 |  | | Code examples: |  | |
|
 |  | | Declaration: |  |  |
HFONT CreateFont(
int nHeight, // height of font
int nWidth, // average character width
int nEscapement, // angle of escapement
int nOrientation, // base-line orientation angle
int fnWeight, // font weight
DWORD fdwItalic, // italic attribute option
DWORD fdwUnderline, // underline attribute option
DWORD fdwStrikeOut, // strikeout attribute option
DWORD fdwCharSet, // character set identifier
DWORD fdwOutputPrecision, // output precision
DWORD fdwClipPrecision, // clipping precision
DWORD fdwQuality, // output quality
DWORD fdwPitchAndFamily, // pitch and family
LPCTSTR lpszFace // typeface name
);
|
 |  |  | | FoxPro declaration: |  |  |
DECLARE INTEGER CreateFont IN gdi32;
INTEGER nHeight,;
INTEGER nWidth,;
INTEGER nEscapement,;
INTEGER nOrientation,;
INTEGER fnWeight,;
INTEGER fdwItalic,;
INTEGER fdwUnderline,;
INTEGER fdwStrikeOut,;
INTEGER fdwCharSet,;
INTEGER fdwOutputPrecision,;
INTEGER fdwClipPrecision,;
INTEGER fdwQuality,;
INTEGER fdwPitchAndFamily,;
STRING lpszFace
|
 |  |  | | Parameters: |  | nHeight
[in] Specifies the height, in logical units, of the font"s character cell or character.
nWidth
[in] Specifies the average width, in logical units, of characters in the requested font.
nEscapement
[in] Specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device.
nOrientation
[in] Specifies the angle, in tenths of degrees, between each character"s base line and the x-axis of the device.
fnWeight
[in] Specifies the weight of the font in the range 0 through 1000.
fdwItalic
[in] Specifies an italic font if set to TRUE.
fdwUnderline
[in] Specifies an underlined font if set to TRUE.
fdwStrikeOut
[in] Specifies a strikeout font if set to TRUE.
fdwCharSet
[in] Specifies the character set.
fdwOutputPrecision
[in] Specifies the output precision.
fdwClipPrecision
[in] Specifies the clipping precision.
fdwQuality
[in] Specifies the output quality.
fdwPitchAndFamily
[in] Specifies the pitch and family of the font.
lpszFace
[in] Pointer to a null-terminated string that specifies the typeface name of the font.
|
 |  | | Return value: |  | If the function succeeds, the return value is a handle to a logical font. If the function fails, the return value is NULL.
|
 |  | | My comment: |  | | Created handle to the font can be passed to a device context using the SelectObject function. To delete a font use DeleteObject function, before your program ends. |
 |  | | Word Index links for the CreateFont : |  | |
|
 |  | | Translate this page: |  | |  |  | | • |  | | Created: | 2001-09-11 12:00:00 | | Modified: | 2001-11-26 16:03:37 | Visited in last 7 days: 67 |
|
 |
 |
 |
 |
Copyright © 2001-2013
News2News, Inc.
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Privacy policy
|
 |
 |
 |
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.1.55-log), the Open Source standard SQL database,
AceHTML Freeware
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc. |
 |
 |
|
 |
 |
|
|