Convert a stem name into a font ID
#include <photon/Pf.h> FontID * PfDecomposeStemToID( char const *pkszStem ); #include <font_api.h> FontID* PfDecomposeStemToIDCx( struct _Pf_ctrl * context, char const * pkszStem );
These functions convert a complete font stem, such as helv12b, to a FontID representation. They parse pkszStem and query the font manager or server for the information pertinent to the font.
You're responsible for releasing the resources associated with the returned FontID structure. To do this, call the corresponding free font function, either PfFreeFont() or PfFreeFontCx().
A pointer to a FontID, or NULL on failure.
PfDecomposeStemToIDCx(): See the example for PfGetGlyphIndexCx().
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
PfConvertFontID(), PfConvertFontIDCx(), PfFindFont(), PfFindFontCx(), PfFontDescription(), PfFontDescriptionCx(), PfFontFlags(), PfFontFlagsCx(), PfFontSize(), PfFontSizeCx(), PfFreeFont(), PfFreeFontCx()
Fonts chapter of the Photon Programmer's Guide