QNX Developer Support
![]() |
![]() |
![]() |
![]() |
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
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
See also:
PfConvertFontID(), PfConvertFontIDCx(), PfDecomposeStemToID(), PfDecomposeStemToIDCx(), PfFindFont(), PfFindFontCx(), PfFontDescription(), PfFontDescriptionCx(), PfFontFlags(), PfFontFlagsCx(), PfFreeFont(), PfFreeFontCx(), PfGenerateFontName(), PfGenerateFontNameCx()
Fonts chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)
