table of contents
Font(3m17n) | The m17n Library | Font(3m17n) |
NAME¶
Font - Font object.Typedefs¶
typedef struct MFont MFont
Functions¶
MFont * mfont ()
Variables¶
MPlist * mfont_freetype_path
Variables: Keys of font property.¶
MSymbol Mfoundry
Detailed Description¶
Font object.- •
- Window system fonts
XLFD field property --------------- -------- FOUNDRY foundry FAMILY_NAME family WEIGHT_NAME weight SLANT style SETWIDTH_NAME stretch ADD_STYLE_NAME adstyle PIXEL_SIZE size RESOLUTION_Y resolution CHARSET_REGISTRY-CHARSET_ENCODING registryXLFD fields not listed in the above table are ignored.
- •
- FreeType fonts
style name weight style stretch ---------- ------ ----- ------- Regular medium r normal Italic medium i normal Bold bold r normal Bold Italic bold i normal Narrow medium r condensed Narrow Italic medium i condensed Narrow Bold bold r condensed Narrow Bold Italic bold i condensed Black black r normal Black Italic black i normal Oblique medium o normal BoldOblique bold o normalStyle names not listed in the above table are treated as 'Regular'. Combination of a platform ID and an encoding ID corresponds to the registry property. For example, if a font has the combination (1 1), the registry property is 1-1. Some frequent combinations have a predefined registry property as below.
platform ID encoding ID registry property ----------- ----------- ----------------- 0 3 unicode-bmp 0 4 unicode-full 1 0 apple-roman 3 1 unicode-bmp 3 1 unicode-fullThus, a font that has two combinations (1 0) and (3 1) corresponds to four font objects whose registries are 1-0, apple-roman, 3-1, and unicode-bmp.
- •
- OpenType fonts
Typedef Documentation¶
typedef struct MFont MFont¶
Type of fonts. The type MFont is the structure defining fonts. It contains information about the following properties of a font: foundry, family, weight, style, stretch, adstyle, registry, size, and resolution. This structure is used both for specifying a font in a fontset and for storing information about available system fonts. The internal structure is concealed from an application program.mfont(), mfont_from_name(),
mfont_find().
Variable Documentation¶
MSymbol Mfoundry¶
Key of font property specifying foundry. The variable Mfoundry is a symbol of name 'foundry' and is used as a key of font property and face property. The property value must be a symbol whose name is a foundry name of a font.MSymbol Mfamily¶
Key of font property specifying family. The variable Mfamily is a symbol of name 'family' and is used as a key of font property and face property. The property value must be a symbol whose name is a family name of a font.MSymbol Mweight¶
Key of font property specifying weight. The variable Mweight is a symbol of name 'weight' and is used as a key of font property and face property. The property value must be a symbol whose name is a weight name of a font (e.g 'medium', 'bold').MSymbol Mstyle¶
Key of font property specifying style. The variable Mstyle is a symbol of name 'style' and is used as a key of font property and face property. The property value must be a symbol whose name is a style name of a font (e.g 'r', 'i', 'o').MSymbol Mstretch¶
Key of font property specifying stretch. The variable Mstretch is a symbol of name 'stretch' and is used as a key of font property and face property. The property value must be a symbol whose name is a stretch name of a font (e.g 'normal', 'condensed').MSymbol Madstyle¶
Key of font property specifying additional style. The variable Madstyle is a symbol of name 'adstyle' and is used as a key of font property and face property. The property value must be a symbol whose name is an additional style name of a font (e.g 'serif', '', 'sans').MSymbol Mspacing¶
Key of font property specifying spacing. The variable Madstyle is a symbol of name 'spacing' and is used as a key of font property. The property value must be a symbol whose name specifies the spacing of a font (e.g 'p' for proportional, 'm' for monospaced).MSymbol Mregistry¶
Key of font property specifying registry. The variable Mregistry is a symbol of name 'registry' and is used as a key of font property. The property value must be a symbol whose name is a registry name a font registry (e.g. 'iso8859-1', 'jisx0208.1983-0').MSymbol Msize¶
Key of font property specifying size. The variable Msize is a symbol of name 'size' and is used as a key of font property and face property. The property value must be an integer specifying a font design size in the unit of 1/10 point (on 100 dpi display).MSymbol Motf¶
Key of font property specifying file name. The variable Mfontfile is a symbol of name 'fontfile' and is used as a key of font property. The property value must be a symbol whose name is a font file name.MSymbol Mfontfile¶
Key of font property specifying file name. The variable Mfontfile is a symbol of name 'fontfile' and is used as a key of font property. The property value must be a symbol whose name is a font file name.MSymbol Mresolution¶
Key of font property specifying resolution. The variable Mresolution is a symbol of name 'resolution' and is used as a key of font property and face property. The property value must be an integer to specifying a font resolution in the unit of dots per inch (dpi).MSymbol Mmax_advance¶
Key of font property specifying max advance width. The variable Mmax_advance is a symbol of name 'max-advance' and is used as a key of font property. The property value must be an integer specifying a font's max advance value by pixels.MSymbol Mfontconfig¶
Symbol of name 'fontconfig'. The variable Mfontconfig is to be used as an argument of the functions mfont_parse_name() and mfont_unparse_name().MSymbol Mx¶
Symbol of name 'x'. The variable Mx is to be used for a value of <type> member of the structure MDrawGlyph to specify the type of <fontp> member is actually (XFontStruct *).MSymbol Mfreetype¶
Symbol of name 'freetype'. The variable Mfreetype is to be used for a value of <type> member of the structure MDrawGlyph to specify the type of <fontp> member is actually FT_Face.MSymbol Mxft¶
Symbol of name 'xft'. The variable Mxft is to be used for a value of <type> member of the structure MDrawGlyph to specify the type of <fontp> member is actually (XftFont *).MPlist* mfont_freetype_path¶
List of font files and directories that contain font files. The variable mfont_freetype_path is a plist of FreeType font files and directories that contain FreeType font files. Key of the element is Mstring, and the value is a string that represents a font file or a directory. The macro M17N_INIT() sets up this variable to contain the sub-directory 'fonts' of the m17n database and the environment variable 'M17NDIR'. The first call of mframe() creates the internal list of the actually available fonts from this variable. Thus, an application program, if necessary, must modify the variable before calling mframe(). If it is going to add a new element, value must be a string that can be safely freed. If the m17n library is not configured to use the FreeType library, this variable is not used.Author¶
Generated automatically by Doxygen for The m17n Library from the source code.COPYRIGHT¶
Copyright (C) 2001 Information-technology Promotion Agency (IPA)12 Jan 2011 | Version 1.6.2 |