ImageGear Professional DLL for Windows
IG_vect_drwng_create_font

The function creates a font by typeface and weight.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_drwng_create_font(
        HIG_VECT_DRWNG hDrwng,
        LPCHAR* lpTypeface,
        long nWeight,
        VECT_BOOL bItalic
        VECT_BOOL bVector, 
        HIG_VECT_FONT* lpFont
);

Arguments:

Name Type Description
hDrwng HIG_VECT_DRWNG Handle to the Drawing.
lpTypeface LPCHAR* Type face of the font.
nWeight long Font weight.
bItalic VECT_BOOL Flag that chooses between font style italic or normal.
bVector VECT_BOOL Flag that tells whether Vector or TrueType font is created.
lpFont HIG_VECT_FONT* Buffer for the font handle.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

None

Remarks:

If bVector is VECT_TRUE then an empty vector font is created. The user is responsible for creating every glyph of such font. Otherwise, a complete TrueType font is created.

This function does not support the creation of User Fonts. ImageGear only allows the loading of User Fonts embedded within vector images.

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback