ImageGear Professional v18.2 > API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Drawing Functions > IG_vect_drwng_detect_font |
The function looks for the font with the specified typeface, weight, and vector flag.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_vect_drwng_detect_font(
HIG_VECT_DRWNG hDrwng,
LPCHAR* lpTypeface,
long nWeight,
VECT_BOOL bVector,
HIG_VECT_FONT* lpFont
);
|
Name | Type | Description |
hDrwng | HIG_VECT_DRWNG | Handle to the Drawing. |
lpTypeface | LPCHAR* | Type face of the font. |
nWeight | long | Font weight. |
bVector | VECT_BOOL | Flag that tells whether Vector or TrueType font is created. |
lpFont | HIG_VECT_FONT* | Buffer for the font handle. |
Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.
This function does not process image pixels.
None
If the font has been found, its handle is returned in lpFont. Otherwise the return value is NULL.