GdipCreateFont(3w)

GdipCreateFont3w

Usage

GpStatus WINGDIPAPI GdipCreateFont
(
GDIPCONST GpFontFamily* fontFamily,
REAL emSize,
INT style,
Unit unit,
GpFont** font
)

Overview

Create a new font based off of a FontFamily.

Params

*fontFamily [In] Family to base the font off of.

emSize [In] Size of the font.

style [In] Bitwise OR of FontStyle enumeration.

unit [In] Unit emSize is measured in.

**font [In] the resulting Font object.

Returns

SUCCESS: Ok

FAILURE: InvalidParameter if fontfamily or font is NULL.

FAILURE: FontFamilyNotFound if an invalid FontFamily is given.

Notes

UnitDisplay is unsupported. emSize is stored separately from lfHeight, to hold the fraction.

Implementation

Declared in "gdiplusflat.h".

Implemented in "dlls/gdiplus/font.c".

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.