IXpsOMGlyphs::GetFontRenderingEmSize method (xpsobjectmodel.h)
Gets the font size.
Syntax
HRESULT GetFontRenderingEmSize(
[out, retval] FLOAT *fontRenderingEmSize
);
Parameters
[out, retval] fontRenderingEmSize
The font size.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the table that follows. For information about XPS document API return values that are not listed in this table, see XPS Document Errors.
Return code | Description |
---|---|
|
The method succeeded. |
|
fontRenderingEmSize is NULL. |
Remarks
The em size that is returned in fontRenderingEmSize specifies the font size in the drawing surface units. The drawing surface units are expressed as floating-point values in the effective coordinate space.
In new glyph objects, the default value of fontRenderingEmSize is 10.0.
If the value of fontRenderingEmSize is 0.0, no text is displayed.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | xpsobjectmodel.h |