CODFontProperties::GetFont

CFont* CODFontProperties::GetFont(CDC* pDC = NULL)

Returns a pointer to the cached GDI font object.

Defined in: OdFontProp.cpp

Return Value

Pointer to font object.

Comments

This function returns a font that is created using the font properties. The font returned is cached in the m_pFont member. If m_pFont is NULL, then this function calls CreateFont to create a new font. NOTE: The caller should never delete the font returned by this function.

Parameters

pDC

A pointer to the device this font will be used in.