アットウィキロゴ

CTFont

CTFont

 # 
 class CTFont
   # different names with a font
   CopyrightNameKey = ""
   FamilyNameKey = ""
   SubFamilyNameKey = ""
   StyleNameKey = ""
   UniqueNameKey = ""
   FullNameKey = ""
   VersionNameKey = ""
   PostScriptNameKey = ""
   TrademarkNameKey = ""
   ManufacturerNameKey = ""
   DesignerNameKey = ""
   DescriptionNameKey = ""
   VendorURLNameKey = ""
   DesignerURLNameKey = ""
   LicenseNameKey = ""
   LicenseURLKey = ""
   SampleTextNameKey = ""
   PostScriptCIDNameKey = ""
   # 
   VariationAxisIdentifierKey
   VariationAxisMinimumValueKey
   VariationAxisMaximumValueKey
   VariationAxisDefaultValueKey
   VariationAxisNameKey
   # 
   FeatureTypeIdentifierKey
   FeatureTypeNameKey
   FeatureTypeExclusiveKey
   FeatureTypeSelectorsKey
   FeatureSelectorIdentifierKey
   FeatureSelectorNameKey
   FeatureSelectorDefaultKey
   FeatureSelectorSettingKey
   # User Interface Type Constants
   # フォントの用途?ユーザーインターフェースとフォントの関連性
   class UIFontType
     NoFontType,
     User,
     UserFixedPitch,
     System,
     EmphasizedSystem,
     SmallSystem,
     SmallEmphasizedSystem,
     MiniSystem,
     MiniEmphasizedSystem,
     Views,
     Application,
     Label,
     MenuTitle,
     MenuItem,
     MenuItemMark,
     MenuItemCmdKey,
     WindowTitle,
     PushButton,
     UtilityWindowTitle,
     AlertHeader,
     SystemDetail,
     EmphasizedSystemDetail,
     Toolbar,
     SmallToolbar,
     Message,
     Palette,
     ToolTip,
     ControlContent =
     0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
     21, 22, 23, 24, 25, 26
   end
   class TableTag
     BASE = 'BASE',
     CFF  = 'CFF ',
     DSIG = 'DSIG',
     EBDT = 'EBDT',
     EBLC = 'EBLC',
     EBSC = 'EBSC',
     GDEF = 'GDEF',
     GPOS = 'GPOS',# Glyph Positioning Table グリフを正しく配置できるように
     GSUB = 'GSUB',# Glyph Substitution Table 代替グリフ(グリフ換字) 他のグリフがあるかどうか
     JSTF = 'JSTF',
     LTSH = 'LTSH',
     OS2  = 'OS/2',
     PCLT = 'PCLT',
     VDMX = 'VDMX',
     VORG = 'VORG',
     Zapf = 'Zapf',
     Acnt = 'acnt',
     Avar = 'avar',
     Bdat = 'bdat',
     Bhed = 'bhed',
     Bloc = 'bloc',
     Bsln = 'bsln',
     Cmap = 'cmap',
     Cvar = 'cvar',
     Cvt  = 'cvt',
     Fdsc = 'fdsc',
     Feat = 'feat',
     Fmtx = 'fmtx',
     Fpgm = 'fpqm',
     Fvar = 'fvar',
     Gasp = 'gasp',
     Glyf = 'glyf',
     Gvar = 'gvar',
     Hdmx = 'hdmx',
     Head = 'head',
     Hhea = 'hhea',
     Hmtx = 'hmtx',
     Hsty = 'hsty',
     Just = 'just',
     Kern = 'kern',
     Lcar = 'lcar',
     Loca = 'loca',
     Maxp = 'maxp',
     Mort = 'mort',
     Morx = 'morx',
     Name = 'name',
     Opbd = 'opbd',
     Post = 'post',
     Prep = 'prep',
     Prop = 'prop',
     Trak = 'trak',
     Vhea = 'vhea',
     Vmtx = 'vmtx'
   end
   # テーブルのオプション
   class TableOption
     NoOptions, ExcludeSynthetic = 0, 1
   end
   TableOptions = TableOption# これ必要かわからんけど
   # オプション。既定・自動起動予防・システムフォント推奨
   class Options
     Default, PreventAutoActivation, PreferSystemFont = 0, 1 << 0, 1 << 2
   end
 end

CFOptionFlags = CTFont::Options

Creating Fonts

CTFont::Create(name, size, matrix)

CTFont::Create(name, size, matrix, options)

CTFont::Create(descriptor, size, matrix)

CTFont::CreateUIFontForLanguage()

CTFont::CreateCopy(attributes)

CTFont::CreateCopy(symbolicTraits)

CTFont::CreateCopy(family)

CTFont::CreateForString()

Getting Font Data

CTFont::CopyPostScriptName

CTFont::CopyFamilyName

CTFont::CopyFullName

CTFont::CopyDisplayName

CTFont::CopyName

CTFont::CopyLocalizedName

Working With Encoding

CTFont::CopyCharacterSet

CTFont::GetStringEncoding

CTFont::SupportedLanguages

CTFont::GetGlyphsForCharacters

Getting Font Metrics

CTFont::GetAscent

CTFont::GetDescent

CTFont::GetLeading

CTFont::GetUnitsPerEm

CTFont::GetGlyphCount

CTFont::GetBoundingBox

CTFont::GetUnderlinePosition

CTFont::GetUnderlineThickness

CTFont::GetSlantAngle

CTFont::GetCapHeight

CTFont::GetXHeight

Getting Glyph Data

CTFont::CreatePathForGlyph

CTFont::GetGlyph(name)

CTFont::GetBoundingRectsForGlyphs

CTFont::GetAdvancesForGlyphs

CTFont::GetVerticalTranslationsForGlyphs

WorkingWithFontVariations

CTFont::CopyVariationAxes

CTFont::CopyVariation

Getting Font Features

CTFont::CopyFeatures

CTFont::CopyFeatureSettings

Converting Fonts

CTFont::CopyGraphicsFont

CTFont::CreateWithGraphicsFont

CTFont::GetPlatformFont

CTFont::Create(platform_font)

CTFont::Create(quickdraw_instance)

Getting Font Table Data

CTFont::CopyAvailableTables

CTFont::CopyTable

Getting the Type Identif

*



CTFont::CreateWithPlatformFont(platform_font, size, matrix, attributes)

CTFont::CreateWithQuickdrawInstance(name, identifier, style, size)


データ型

CGFontRef

CGFontIndex

フォントテーブルの中へのインデックス
この整数型はグリフ識別子を指定する補足的な手段を提供します。
CGFontIndexはCGGlyphと等価で、どちらの定数群も相互に交換可能で使えます。

CGGlyph

フォントの内部グリフテーブルの中へのインデックス
テキスト描画時に、キャラクタのシーケンスを頻繁に指定します。
けれども、CGGlyph値でグリフを指定することもQuartzは受け入れています。
Quartzは、ATSフレームワークによって提供されるフォントデータを使ってテキストを描画する。
CGGlyph値を関数CGContextShowGlyphsやCGContextShowGlyphsAtPointに渡してください。
これらの関数は現行のテキスト位置およびあなたの指定した位置にグリフの配列を表示する。

タグ:

+ タグ編集
  • タグ:
最終更新:2010年06月15日 01:34
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。