Main Page   Modules   Compound List   File List   Compound Members   File Members  

Font methods


Functions

STStatus STFontGetNameTags (STTypeEnv iEnv, STFont iFont, STCount *oNameCount, STNameTagPtr *oNameTags)
 Extracts all name string tags from the font. More...

STStatus STFontGetNameString (STTypeEnv iEnv, STFont iFont, STNameTagPtr iNameTag, int *oStringLength, byte **oStringData)
 Extracts a string specified by the string tag from the font. More...

STStatus STFontGetUnicodeName (STTypeEnv iEnv, STFont iFont, uint16 iNameID, STLanguage *ioLanguage, STCharCount *oCharCount, utf16 **oStringData)
 Extracts a string specified by the string tag from the font and normalizes it to Unicode. More...

STStatus STFontGetType (STTypeEnv iEnv, STFont iFont, STFontType *oFontType)
 Retrieves a type of the font. More...

STStatus STFontGetURL (STTypeEnv iEnv, STFont iFont, char **oFontURL)
 Retrieves the URL of the font. More...

STStatus STFontGetData (STTypeEnv iEnv, STFont iFont, STTag iTable, STCount *oByteCount, byte **oRawData)
STStatus STFontGetExtInfo (STTypeEnv iEnv, STFont iFont, const char **oFontName, const char **oPSName, STFontServerFontType *oType, STFontInfoFlags *oFlags, int *oSbitCount, int **oSbitArray, STFontMetrics *oFontMetrics)
 Retrieves extended font information from a font. More...

STStatus STFontGetBaselines (STTypeEnv iEnv, STFont iFont, STBaselines *oBaselines)
 Retrieves offsets of all baselines defined in the font from the Roman baseline. More...

STStatus STFontGetFeatures (STTypeEnv iEnv, STFont iFont, STCount *oFeatureCount, STFontFeatureTag **oFeatureArray)
 XXX NOT FOR THE ARC Retrieves all font features from the font. More...


Function Documentation

STStatus STFontGetBaselines STTypeEnv    iEnv,
STFont    iFont,
STBaselines   oBaselines
 

Retrieves offsets of all baselines defined in the font from the Roman baseline.

First (lastBaseline + 1) baselines are predefined.

Parameters:
iEnv  type environment object
iFont  a font ID
oBaselines  pointer to an array where on return the baselines are stored
Returns:
STStatus

STStatus STFontGetExtInfo STTypeEnv    iEnv,
STFont    iFont,
const char **    oFontName,
const char **    oPSName,
STFontServerFontType   oType,
STFontInfoFlags   oFlags,
int *    oSbitCount,
int **    oSbitArray,
STFontMetrics   oFontMetrics
 

Retrieves extended font information from a font.

Any of the output parameters can be NULL pointers, in that case ST will skip over them when returning values.

Parameters:
iEnv  type environment object
iFont  a fontID
oFontName  ST allocates memory and copies the "C" locale font name to it and stores a pointer to the newly allocated memory there
oPSName  ST allocates memory and copies the PostScript name of the font to it and stores a pointer to the newly allocated memory there
oType  STFontServer - specific font type
oFlags  an OR-ed mask of font flags
oSbitCount  the number of the embedded bitmaps the font has
oSbitArray  array of sbit sizes allocated by ST
oFontMetrics  font metric information
Returns:
STStatus

STStatus STFontGetFeatures STTypeEnv    iEnv,
STFont    iFont,
STCount   oFeatureCount,
STFontFeatureTag **    oFeatureArray
 

XXX NOT FOR THE ARC Retrieves all font features from the font.

ST supports both AAT style font features and OpenType font features. ST font features are "feature selectors" in AAT terminology, AAT font features do not have any predefined tags by themselves.

Parameters:
iEnv  type environment object
iFont  a font ID
oFeatureCount  the number of features is stored here.
oFeatureArray  an array feature tags is stored here. Memory is allocated by this function and the caller is responsible for freeing it.
Returns:
STStatus

STStatus STFontGetNameString STTypeEnv    iEnv,
STFont    iFont,
STNameTagPtr    iNameTag,
int *    oStringLength,
byte **    oStringData
 

Extracts a string specified by the string tag from the font.

Parameters:
iEnv  type environment object
iFont  font ID
iNameTag  NameTag that specifies the string
oStringLength  address of a variable where the length of the resulting string in bytes is stored
oStringData  address of a pointer that on return will point to memory allocated by this function that holds name string data.

STStatus STFontGetNameTags STTypeEnv    iEnv,
STFont    iFont,
STCount   oNameCount,
STNameTagPtr   oNameTags
 

Extracts all name string tags from the font.

Parameters:
iEnv  type environment object
iFont  font ID
oNameCount  number of retrieved string tags is stored here
oNameStrings  pointer to an array of STNameStringTag structures allocated by this function.
Returns:
STStatus

STStatus STFontGetType STTypeEnv    iEnv,
STFont    iFont,
STFontType   oFontType
 

Retrieves a type of the font.

Parameters:
iEnv  type environment object
iFont  a font ID
oFontType  a pointer to the variable where the font type of the font is stored on return
Returns:
STStatus

STStatus STFontGetUnicodeName STTypeEnv    iEnv,
STFont    iFont,
uint16    iNameID,
STLanguage   ioLanguage,
STCharCount   oCharCount,
utf16 **    oStringData
 

Extracts a string specified by the string tag from the font and normalizes it to Unicode.

Parameters:
iEnv  type environment object
iFont  font ID
iNameID  named ID
ioLanguage  requested language. If STSF does not find the requested language and substitutes it with a different language, the new language is stored here
oCharCount  the length of the resulting string is stored here
oStringData  address of a pointer that on return will point to memory allocated by this function that holds name string data.
Returns:
STStatus

STStatus STFontGetURL STTypeEnv    iEnv,
STFont    iFont,
char **    oFontURL
 

Retrieves the URL of the font.

Parameters:
iEnv  type environment object
iFont  a font ID
oFontURL  the URL of the font is stored here
Returns:
STStatus


Generated on Thu Mar 20 23:35:53 2003 for Standard Type Services by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001