Translation:Font and Font Family

From IDMLWiki

Jump to: navigation, search

Contents

10.5.1 フォントとフォントファミリー

フォントファミリーは似たフォントのグループです。例えば、「Arial Regular」と「Arial Bold」、「Arial Italic」というフォントは、すべて同じフォントファミリーに属します。<FontFamily>エレメントは<Font>エレメントをグループ化したもので、各<Font>エレメントが特定のフォントを定義します。

<FontFamily>エレメントと<Font>エレメントは、共にID属性を持っています。この属性はIDMLパッケージ内を通して参照されます。

スキーマの例52 FontFamily
  1. FontFamily_Object = element FontFamily{ 
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string }?,
  4. (
  5.   Font_Object*
  6. )
  7. }
スキーマの例53 Font
  1. Font_Object = element Font {
  2.   attribute Self { xsd:string },
  3.   attribute FontFamily{  xsd:string }?,
  4.   attribute Name { xsd:string }?,
  5.   attribute PostScriptName{  xsd:string }?,
  6.   attribute Status { FontStatus_EnumValue }?,
  7.   attribute FontStyleName{  xsd:string }?,
  8.   attribute FontType{  FontTypes_EnumValue }?,
  9.   attribute WritingScript{  xsd:int }?,
  10.   attribute FullName{  xsd:string }?,
  11.   attribute FullNameNative{  xsd:string }?,
  12.   attribute FontStyleNameNative{  xsd:string }?,
  13.   attribute PlatformName{  xsd:string }?,
  14.   attribute Version { xsd:string }?
  15. }

下記は、<Font>エレメントが「Myriad Pro Bold」フォントを定義している例です。

Note:「Myriad Pro」フォントファミリーに属する他のフォントは省略しています。

IDMLの例50 Font
  1. <FontFamily Self="di77" Name="Myriad Pro">
  2.   <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"/>
  3. </FontFamily>
表61 属性としてのFontプロパティ
名前 必須 説明
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(繁体字中国語)
Personal tools