From 3cd34d1f07684103c080fd0e28d1c3018774e0e4 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 17 Nov 2008 08:08:56 +0000 Subject: [PATCH] (FONT-SPEC): Add descripition of OTF-SPEC and LANG-SPEC. --- FORMATS/Fontset.txt | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/FORMATS/Fontset.txt b/FORMATS/Fontset.txt index 8d4580c..3fcb4cd 100644 --- a/FORMATS/Fontset.txt +++ b/FORMATS/Fontset.txt @@ -29,7 +29,8 @@ FONT-SPEC-ELEMENT ::= '(' FONT-SPEC [ FLT-NAME ] ')' FONT-SPEC ::= '(' [ FOUNDRY FAMILY [ WEIGHT [ STYLE [ STRETCH [ ADSTYLE ]]]]] - REGISTRY ')' + REGISTRY + [ OTF-SPEC ] [ LANG-SPEC ] ')' @endverbatim @c SCRIPT is a symbol of script name (e.g. latin, han) or @c nil. @c @@ -40,6 +41,35 @@ LANGUAGE is a two-letter symbol of language name code defined by ISO REGISTRY are symbols corresponding to #Mfoundry to #Mregistry property of a font. See @ref m17nFont for the meaning of each property. +@c OTF-SPEC is a symbol specifing the required OTF features. The +symbol name has the following syntax. + +@verbatim + 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 ',' ) + +@endverbatim + +Here, @c FEATURE is a four-letter Open Type feature. + +@c LANG-SPEC is a symbol specifying the required language support. +The symbol name has the following syntax. + +@verbatim + LANG-SPEC-NAME ::= ':lang=' LANG +@endverbatim + +Here, @c LANG is a two or three-letter ISO-639 language code. + @c FLT-NAME is a name of Font Layout Table (@ref mdbFLT). @section fontset-example EXAMPLE -- 1.7.10.4