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
GdipGetFontCollectionFamilyList
..msdn    Add comment     W32 Constants      Translate this page
Gets list of the font families contained in this font collection.
Code examples:
Custom GDI+ class
Declaration:
GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList(
    GpFontCollection* fontCollection,
    INT numSought,
    GpFontFamily* gpfamilies[],
    INT* numFound
)

FoxPro declaration:
DECLARE INTEGER GdipGetFontCollectionFamilyList IN gdiplus;
    INTEGER   fontCollection,;
    INTEGER   numSought,;
    STRING  @ gpfamilies,;
    INTEGER @ numFound

Parameters:
fontCollection
[in] Handle to FontCollection object.

numSought
[in] Suggested number of font families in this font collection

gpfamilies
[out] Pointer to an array that receives the list of names.

numFound
[out] Pointer to an INT that receives the number of font families found in this collection. This number should be the same as the numSought value.
Return value:
Returns 0 on success.
My comment:
The interface of this function is some fuzzy. I do not think they really need numSought parameter to be supplied to the function. May be the idea is to give an option of retrieving only the top part of this list, which does not make sense either :)

Though anyway, call GdipGetFontCollectionFamilyCount to get the number of Font Families found in this collection.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-08-09 08:37:54
Modified: 2004-08-09 08:50:42
Visited in last 7 days: 36
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.234.247.118)
23 sec.Function: 'GdipGetMatrixElements'
46 sec.Function: 'CeGetVersionEx'
1.17 min.Function: 'CeRapiFreeBuffer'
1.58 min.Function: 'EnableWindow'
1.98 min.Function: 'DllGetVersion'
2.52 min.Function: 'AdjustTokenPrivileges'
3.13 min.Function: 'GdipCreateMatrix'
5.67 min.Function: 'DrawMenuBar'
2 day(s)Function: 'UrlMkSetSessionOption'
 Function: 'SHQueryRecycleBin'
Google
Advertise here!