Using Win32 functions in Visual FoxPro Image Gallery
GDI+ Font
..msdn
GdipCreateFont
GdipCreateFontFamilyFromName
GdipDeleteFont
GdipDeleteFontFamily
GdipGetFamilyName
GdipGetFontCollectionFamilyCount
GdipGetFontCollectionFamilyList
GdipIsStyleAvailable
GdipNewInstalledFontCollection
Code examples:
Custom GDI+ class
GdipCreateFont
..msdn    Add comment     W32 Constants      Translate this page
Creates a Font handle based on a FontFamily handle, a size, a font style, and a unit of measurement.
Code examples:
Custom GDI+ class
Declaration:
GpStatus WINGDIPAPI GdipCreateFont(
    GDIPCONST GpFontFamily *fontFamily,
    REAL emSize,
    INT style,
    Unit unit, GpFont **font
)

FoxPro declaration:
DECLARE INTEGER GdipCreateFont IN gdiplus;
    INTEGER   fontFamily,;
    SINGLE    emSize,;
    INTEGER   fontstyle,;
    INTEGER   unit,;
    INTEGER @ fnt

Parameters:
FontFamily
[in] FontFamily handle that specifies information such as the string that identifies the font family and the font family"s text metrics measured in design units.

emSize
[in] Real number that specifies the em size of the font measured in the units specified in the unit parameter.

fontstyle
[in] Optional. Integer that specifies the style of the typeface.

unit
[in] Optional. Element of the Unit enumeration that specifies the unit of measurement for the font size (UnitPoint=0).

fnt
[out] Handle to the Font object.
Return value:
Returns 0 on success.
My comment:
When you no longer need the Font handle, call the GdipDeleteFont function.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-07-22 09:46:46
Modified: 2004-07-22 09:52:28
Visited in last 7 days: 11
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.203.76)
3 sec.Function: 'SHQueryRecycleBin'
6 sec.Function: 'URLDownloadToCacheFile'
9 sec.Function: 'UrlMkSetSessionOption'
12 sec.Function: 'MapVirtualKey'
15 sec.Function: 'GetDiskFreeSpace'
19 sec.Function: 'CreateCompatibleDC'
21 sec.Function: 'MAPIResolveName'
25 sec.Function: 'CryptGetDefaultProvider'
28 sec.Function: 'CloseEventLog'
31 sec.Function: 'WSAWaitForMultipleEvents'
Google
Advertise here!