PfFontSize(), PfFontSizeCx()

Get the point size of a font

Synopsis:

#include <photon/Pf.h>
uint32_t PfFontSize( FontID * ptsID );

#include <font_api.h>
uint32_t PfFontSizeCx( struct _Pf_ctrl * context,
                       FontID * ptsID );

Arguments:

context
(PfFontSizeCx() only) A pointer to the font context to use, returned by PfAttachCx() or PfAttachDllCx().
ptsID
A pointer to a font ID, as returned by PfFindFont() or PfFindFontCx().

Library:

PfFontSize()
ph
PfFontSizeCx()
font

Description:

These functions get the point size associated with the font ID pointed to by ptsID. These routines don't verify that ptsID is non-NULL.

Returns:

The point size of the font.

Examples:

PfFontSizeCx(): See the example for PfConvertFontIDCx().

PfFontSize(): See PfFindFont().

Classification:

Photon

PfFontSize()

Safety:
Interrupt handler No
Signal handler No
Thread No

PfFontSizeCx()

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

PfConvertFontID(), PfConvertFontIDCx(), PfDecomposeStemToID(), PfDecomposeStemToIDCx(), PfFindFont(), PfFindFontCx(), PfFontDescription(), PfFontDescriptionCx(), PfFontFlags(), PfFontFlagsCx(), PfFreeFont(), PfFreeFontCx(), PfGenerateFontName(), PfGenerateFontNameCx()

Fonts chapter of the Photon Programmer's Guide