Translation:Font and Font Family
From IDMLWiki
Contents |
10.5.1 フォントとフォントファミリー
フォントファミリーは似たフォントのグループです。例えば、「Arial Regular」と「Arial Bold」、「Arial Italic」というフォントは、すべて同じフォントファミリーに属します。<FontFamily>エレメントは<Font>エレメントをグループ化したもので、各<Font>エレメントが特定のフォントを定義します。
<FontFamily>エレメントと<Font>エレメントは、共にID属性を持っています。この属性はIDMLパッケージ内を通して参照されます。
スキーマの例52 FontFamily
FontFamily_Object = element FontFamily{
attribute Self { xsd:string },
attribute Name { xsd:string }?,
(Font_Object*)}
スキーマの例53 Font
Font_Object = element Font {
attribute Self { xsd:string },
attribute FontFamily{ xsd:string }?,
attribute Name { xsd:string }?,
attribute PostScriptName{ xsd:string }?,
attribute Status { FontStatus_EnumValue }?,
attribute FontStyleName{ xsd:string }?,
attribute FontType{ FontTypes_EnumValue }?,
attribute WritingScript{ xsd:int }?,
attribute FullName{ xsd:string }?,
attribute FullNameNative{ xsd:string }?,
attribute FontStyleNameNative{ xsd:string }?,
attribute PlatformName{ xsd:string }?,
attribute Version { xsd:string }?
}
下記は、<Font>エレメントが「Myriad Pro Bold」フォントを定義している例です。
Note:「Myriad Pro」フォントファミリーに属する他のフォントは省略しています。
IDMLの例50 Font
<FontFamily Self="di77" Name="Myriad Pro"><Font Self="di77FontnMyriad Pro Bold" FontFamily=" Myriad Pro" Name="Myriad Pro Bold" PostScriptName="$ ID/MyriadPro- Bold" Status="Installed" FontStyleName=" Bold" FontType=" OpenTypeCFF" WritingScript=" 0" FullName=" Myriad Pro Bold" FullNameNative=" Myriad Pro Bold" FontStyleNameNative=" Bold" PlatformName="$ ID/" Version="Version 2.007;PS 002.000;Core 1.0.38;makeotf.lib1.7.9032"/></FontFamily>
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| FontFamily | string | ○ | このフォントを含むフォントファミリーへの参照。<FontFamily>エレメントのユニークなID(Self属性) |
| FontStyleName | string | ○ | フォントスタイル名 |
| FontStyleNameNative | string | ○ | ネイティブでのフォントスタイル名 |
| FontType | FontTypes_EnumValue | ○ | フォントタイプ。Type1、TrueType、CID、ATC、Bitmap、OCF、OpenTypeCFF、OpenTypeCID、OpenTypeTTまたはUnknown |
| FullName | string | ○ | フルフォント名 |
| FullNameNative | string | ○ | ネイティブでのフルフォント名 |
| Name | string | ○ | フォント名 |
| PlatformName | string | ○ | プラットフォームでのフォント名 |
| PostScriptName | string | ○ | PostScriptでのフォント名 |
| Status | FontStatus_EnumValue | ○ | フォントのステータス。Installed、NotAvailable、Fauxed、SubstitutedまたはUnknown |
| Version | string | ○ | フォントのバージョン |
| WritingScript | int | ○ | ライティングスクリプト。0(欧文)、1(日本語)または2(繁体字中国語) |
