Man page - mdbfontset(5)
Packages contains this manual
Manual
mdbFontset
NAMEDESCRIPTION
EXAMPLE
COPYRIGHT
NAME
mdbFontset - Fontset
DESCRIPTION
The m17n library loads a fontset definition from the m17n database by the tags <fontset, FONTSET-NAME>. The plist format of the data is as follows:
FONTSET ::= PER-SCRIPT * PER-CHARSET * FALLBACK *
PER-SCRIPT ::= β(β SCRIPT PER-LANGUAGE + β)β
PER-LANGUAGE ::= β(β LANGUAGE FONT-SPEC-ELEMENT + β)β
PER-CHARSET ::= β(β CHARSET FONT-SPEC-ELEMENT + β)β
FALLBACK ::= FONT-SPEC-ELEMENT
FONT-SPEC-ELEMENT ::= β(β FONT-SPEC [ FLT-NAME ] β)β
FONT-SPEC ::=
β(β [ FOUNDRY FAMILY
[ WEIGHT [ STYLE [ STRETCH [ ADSTYLE ]]]]]
REGISTRY
[ OTF-SPEC ] [ LANG-SPEC ] β)β
SCRIPT is a symbol of script name (e.g. latin, han) or nil . LANGUAGE is a two-letter symbol of language name code defined by ISO 639 (e.g. ja, zh) or nil .
FONT-SPEC is to specify properties of a font. FOUNDRY to REGISTRY are symbols corresponding to #Mfoundry to #Mregistry property of a font. See m17nFont for the meaning of each property.
OTF-SPEC is a symbol specifyng the required OTF features. The symbol name has the following syntax.
OTF-SPEC-NAME ::= β:otf=β SCRIPT LANGSYS ? GSUB-FEATURES ? GPOS-FEATURES ?
SCRIPT ::=
SYMBOL
LANGSYS ::= β/β SYMBOL
GSUB-FEATURES ::= β=β FEATURE-LIST ?
GPOS-FEATURES ::= β+β FEATURE-LIST ?
FEATURE-LIST ::= βΛβ ? FEATURE ( β,β βΛβ ? FEATURE β,β ).fi
Here, FEATURE is a four-letter Open Type feature.
LANG-SPEC is a symbol specifying the required language support. The symbol name has the following syntax.
LANG-SPEC-NAME ::= β:lang=β LANG
Here, LANG is a two or three-letter ISO-639 language code.
FLT-NAME is a name of Font Layout Table ( Font Layout Table ).
EXAMPLE
This is an example of PER_SCRIPT .
(han
(ja
((jisx0208.1983-0)))
(zh
((gb2312.1980-0)))
(nil
((big5-0))))
It instructs the font selector to use a font of registry βjisx0208.1983-0β for a βhanβ character (i.e. a character whose #Mscript property is βhanβ) if the character has #Mlanguage text property βjaβ in an M-text and the character is in the repertories of such fonts. Otherwise, try a font of registry βgb2312.1980-0β or βbig5-0β. If that βhanβ character does not have #Mlanguage text property, try all three fonts.
See the function mdraw_text() for the detail of how a font is selected.
COPYRIGHT
Copyright (C)
2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced
Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation
License <http://www.gnu.org/licenses/fdl.html>.