Typedefs | |
typedef MFontset | MFontset |
Functions | |
MFontset * | mfontset (char *name) |
Return a fontset. | |
MSymbol | mfontset_name (MFontset *fontset) |
Return the name of a fontset. | |
MFontset * | mfontset_copy (MFontset *fontset, char *name) |
Make a copy of a fontset. | |
int | mfontset_modify_entry (MFontset *fontset, MSymbol language, MSymbol script, MSymbol charset, MFont *spec, MSymbol layouter_name, int how) |
Modify the contents of a fontset. | |
MPlist * | mfontset_lookup (MFontset *fontset, MSymbol script, MSymbol language, MSymbol charset) |
Lookup a fontset. |
MFontset
. When drawing an M-text, a fontset provides rules to select a font for each character in the M-text according to the following information.
|
|
|
The mfontset() function returns a pointer to a fontset object of name name. If name is
If no fontset has the name name, a new one is created. At that time, if there exists a data < The macro M17N_INIT() creates the default fontset. An application program can modify it before the first call of mframe().
|
|
The mfontset_name() function returns the name of fontset fontset. |
|
The mfontset_copy() function makes a copy of fontset fontset, gives it a name name, and returns a pointer to the created copy. name must not be a name of existing fontset. In such case, this function returns NULL without making a copy. |
|
The mfontset_modify_entry() function associates, in fontset fontset, a copy of font with the script / language pair or with charset.
Each font in a fontset is associated with a particular script/language pair, with a particular charset, or with the symbol
If script is not
If charset is not
If both script and charset are not
If both script and charset are The argument how specifies the priority of font. If how is positive, font has the highest priority in the group of fonts that are associated with the same item. If how is negative, font has the lowest priority. If how is zero, font becomes the only available font for the associated item; all the other fonts are removed from the group.
If layouter_name is not
|
|
The mfontset_lookup() function lookups fontset and returns a plist that describes the contents of fontset corresponding to the specified script, language, and charset.
If script is If scirpt is a script symbol, the returned plist is decided by language.
If language is
If language is a language name symbol, the plist is a
If langauge is
If script is
If charset is
If charset is a charset symbol, the plist is a
If charset is
|