PfFontDescription(), PfFontDescriptionCx()

Get the foundry name of a font

Synopsis:

#include <photon/Pf.h>
char const *PfFontDescription( FontID *ptsID );

#include <font_api.h>
char const* PfFontDescriptionCx(
               struct _Pf_ctrl * context,
               FontID * ptsID );

Arguments:

context
(PfFontDescriptionCx() 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:

PfFontDescription()
ph
PfFontDescriptionCx()
fontlib

Description:

These functions get the foundry name specific to the font ID pointed to by ptsID. These routines don't check to see if ptsID is non-NULL.

Returns:

The foundry name specific to the FontID, e.g. Comic Sans MS.

Examples:

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

PfFontDescription(): See PfFindFont().

Classification:

Photon

PfFontDescription()

Safety:
Interrupt handler No
Signal handler No
Thread No

PfFontDescriptionCx()

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

PfConvertFontID(), PfConvertFontIDCx(), PfDecomposeStemToID(), PfDecomposeStemToIDCx(), PfFindFont() PfFindFontCx(), PfFontBaseStem(), PfFontBaseStemCx(), PfFontFlags(), PfFontFlagsCx(), PfFontSize(), PfFontSizeCx(), PfFreeFont(), PfFreeFontCx(), PfGenerateFontName(), PfGenerateFontNameCx()

Fonts chapter of the Photon Programmer's Guide