Group: GDI+ Font - Library: gdiplus
Creates a Font handle based on a FontFamily handle, a size, a font style, and a unit of measurement.
GpStatus WINGDIPAPI GdipCreateFont(
GDIPCONST GpFontFamily *fontFamily,
REAL emSize,
INT style,
Unit unit, GpFont **font
)
DECLARE INTEGER GdipCreateFont IN gdiplus;
INTEGER fontFamily,;
SINGLE emSize,;
INTEGER fontstyle,;
INTEGER unit,;
INTEGER @ fnt
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.
Returns 0 on success.
When you no longer need the Font handle, call the GdipDeleteFont function.
Home