PrivateFontCollection.AddMemoryFont method
Applies to: desktop apps only
The PrivateFontCollection::AddMemoryFont method adds a font that is contained in system memory to a Windows GDI+ font collection.
Syntax
Status AddMemoryFont( [in] const VOID *memory, [in] INT length );
Parameters
- memory [in]
-
Type: const VOID*
Pointer to a font that is contained in memory.
- length [in]
-
Type: INT
Integer that specifies the number of bytes of data in the font.
Return value
Type:
Type: Status
If the method succeeds, it returns Ok, which is an element of the Status enumeration.
If the method fails, it returns one of the other elements of the Status enumeration.
Remarks
When you use the GDI+ API, you must never allow your application to download arbitrary fonts from untrusted sources. The operating system requires elevated privileges to assure that all installed fonts are trusted.
Requirements
|
Minimum supported client | Windows XP, Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Product | GDI+ 1.0 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- PrivateFontCollection
- PrivateFontCollection::AddFontFile
- Using Text and Fonts
- Creating a Private Font Collection
Send comments about this topic to Microsoft
Build date: 3/6/2012