/* Copyright (C) 2003, 2004 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number H15PRO112 See the end for copying conditions. */ /***ja @page mdbFontset フォントセット @section fontset-description 説明 m17n ライブラリは、m17n データベースから \ タ グによってフォントセットの定義をロードする。このデータは以下のフォーマッ トのプロパティリストとしてロードされる。 @verbatim 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 ')' @endverbatim @c SCRIPT はスクリプト名 (e.g. latin, han) を示すシンボルか @c nilであ る。@c LANGUAGE はISO 639 に定義された言語名コード (e.g. ja, zh) であ る2文字のシンボルか @c nil である。 @c FONT-SPEC はフォントのプロパティを指定する。@c FOUNDRY から @c REGISTRY はフォントの #Mfoundry から #Mregistry プロパティに対応するシ ンボルである。各プロパティの意味については @ref m17nFont 参照。 @c FLT-NAME はフォントレイアウトテーブルの名前である。(@ref mdbFLT). @section fontset-example 例 これは @c PER_SCRIPT の例である。 @verbatim (han (ja ((jisx0208.1983-0))) (zh ((gb2312.1980-0))) (nil ((big5-0)))) @endverbatim これによってフォントセレクタは、"han" 文字 (つまり#Mscript プロパティ が 'han' である文字)のうち、文字の M-text 中での #Mlanguage テキストプ ロパティが "ja" でありその文字がフォントのレパートリーに含まれていれも のについては、レジストリが"jisx0208.1983-0" であるフォントを使うことを 指示される。そうでなければ、レジストリが "gb2312.1980-0" や"big5-0" で あるものが試される。"han" 文字に #Mlanguage テキストプロパティが無けれ ば、3つとも試される。 フォント選択の詳細については関数 mdraw_text () 参照。 */ /* Copyright (C) 2003, 2004 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number H15PRO112 This file is part of the m17n database; a sub-part of the m17n library. The m17n library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The m17n library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the m17n library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */