GlyphTypeface GlyphTypeface GlyphTypeface GlyphTypeface Class

定義

指定與磁碟上字型檔對應的實體字型。Specifies a physical font face that corresponds to a font file on the disk.

public ref class GlyphTypeface : System::ComponentModel::ISupportInitialize
public class GlyphTypeface : System.ComponentModel.ISupportInitialize
type GlyphTypeface = class
    interface ISupportInitialize
Public Class GlyphTypeface
Implements ISupportInitialize
繼承
GlyphTypefaceGlyphTypefaceGlyphTypefaceGlyphTypeface
實作

備註

GlyphTypeface物件是較低層級的文字物件, 它會對應到字型家族的單一臉部 (以 OpenType 字型檔案表示), 或序列化為檔中的記憶體區塊。The GlyphTypeface object is a low level text object that corresponds to a single face of a font family as represented by an OpenType font file, or serialized as a block of memory in a document. 在給定GlyphTypeface邏輯字型中用於執行字元的正確, 通常是WPFWPF由字型系統所決定, 並記錄在FormattedText物件所產生GlyphRun的物件和線條格式文字APIAPIs中。The correct GlyphTypeface to use for a run of characters in a given logical font is normally determined by the WPFWPF font system and recorded in the GlyphRun objects generated by the FormattedText object and line formatting text APIAPIs.

GlyphTypeface提供的屬性和方法如下:The GlyphTypeface provides properties and methods for:

  • 取得字型的一般計量, 例如上升和下降到 em 大小的比率。Obtaining font face common metrics, such as the ratio of ascent and descent to em size.

  • 取得個別圖像的計量、大綱和點陣圖。Obtaining metrics, outlines, and bitmaps for individual glyphs.

  • 檔中的序列化。Serialization in a document.

下列清單描述應用程式案例的類型, 說明使用GlyphTypeface物件所提供之低層級控制項的值。The following list describes the type of application scenarios that illustrate the value of using the low-level control that the GlyphTypeface object provides.

  • 固定格式的檔產生器可以使用GlyphTypeface來取得字型的二進位影像, 以便在檔容器中內嵌A fixed format document generator may use the GlyphTypeface to obtain a binary image of the font for embedding in a document container

  • 印表機驅動程式可能會使用GlyphTypeface來取得字型字型外框或點陣圖, 或用來傳送到印表機的整個字型影像。A printer driver may use the GlyphTypeface to obtain font glyph outlines or bitmaps, or the entire font image for sending to the printer.

  • 檢視器應用程式可能會GlyphTypeface使用來取得度量和點陣圖資訊。 GlyphTypefaceA GlyphTypeface viewer application may use the GlyphTypeface to obtain metric and bitmap information.

每個字元都會定義度量, 以指定其與Glyphs其他的對齊方式。Each glyph defines metrics that specify how it aligns with other Glyphs. 下圖定義圖像字元的度量值。The following graphic defines metric values for glyph characters.

字元![測量繪圖器]字元(~/add/media/glyph-example.png "測量繪圖器")Diagraph of glyph measurements
圖像字元的度量值Metric values of glyph characters

建構函式

GlyphTypeface() GlyphTypeface() GlyphTypeface() GlyphTypeface()

初始化 GlyphTypeface 類別的新執行個體。Initializes a new instance of the GlyphTypeface class.

GlyphTypeface(Uri) GlyphTypeface(Uri) GlyphTypeface(Uri) GlyphTypeface(Uri)

使用指定的字型檔位置,初始化 GlyphTypeface 類別的新執行個體。Initializes a new instance of the GlyphTypeface class using the specified font file location.

GlyphTypeface(Uri, StyleSimulations) GlyphTypeface(Uri, StyleSimulations) GlyphTypeface(Uri, StyleSimulations) GlyphTypeface(Uri, StyleSimulations)

使用指定的字型檔位置和 GlyphTypeface 值,初始化 StyleSimulations 類別的新執行個體。Initializes a new instance of the GlyphTypeface class using the specified font file location and StyleSimulations value.

屬性

AdvanceHeights AdvanceHeights AdvanceHeights AdvanceHeights

取得 GlyphTypeface 物件所表示之圖像的遞增高度。Gets the advance heights for the glyphs represented by the GlyphTypeface object.

AdvanceWidths AdvanceWidths AdvanceWidths AdvanceWidths

取得 GlyphTypeface 物件所表示之圖像的遞增寬度。Gets the advance widths for the glyphs represented by the GlyphTypeface object.

Baseline Baseline Baseline Baseline

取得 GlyphTypeface 的基準值。Gets the baseline value for the GlyphTypeface.

BottomSideBearings BottomSideBearings BottomSideBearings BottomSideBearings

取得從黑色方塊下邊緣到圖像 (以 GlyphTypeface 物件表示) 之前進向量底端的距離。Gets the distance from bottom edge of the black box to the bottom end of the advance vector for the glyphs represented by the GlyphTypeface object.

CapsHeight CapsHeight CapsHeight CapsHeight

取得從基準線到 GlyphTypeface 物件之英文大寫字頂端的距離,以相對於 em 大小的值表示。Gets the distance from the baseline to the top of an English capital, relative to em size, for the GlyphTypeface object.

CharacterToGlyphMap CharacterToGlyphMap CharacterToGlyphMap CharacterToGlyphMap

取得從 Unicode 字碼指標到圖像索引的名義對應 (由字型 'CMAP' 表格所定義)。Gets the nominal mapping of a Unicode code point to a glyph index as defined by the font 'CMAP' table.

Copyrights Copyrights Copyrights Copyrights

取得 GlyphTypeface 物件的著作權資訊。Gets the copyright information for the GlyphTypeface object.

Descriptions Descriptions Descriptions Descriptions

取得 GlyphTypeface 物件的描述資訊。Gets the description information for the GlyphTypeface object.

DesignerNames DesignerNames DesignerNames DesignerNames

取得 GlyphTypeface 物件的設計工具資訊。Gets the designer information for the GlyphTypeface object.

DesignerUrls DesignerUrls DesignerUrls DesignerUrls

取得 GlyphTypeface 物件的設計工具 URL 資訊。Gets the designer URL information for the GlyphTypeface object.

DistancesFromHorizontalBaselineToBlackBoxBottom DistancesFromHorizontalBaselineToBlackBoxBottom DistancesFromHorizontalBaselineToBlackBoxBottom DistancesFromHorizontalBaselineToBlackBoxBottom

取得從水平西歐基準線到圖像 (以 GlyphTypeface 物件表示) 之圖像黑色方塊底端的位移值。Gets the offset value from the horizontal Western baseline to the bottom of the glyph black box for the glyphs represented by the GlyphTypeface object.

EmbeddingRights EmbeddingRights EmbeddingRights EmbeddingRights

取得 GlyphTypeface 物件的字型內嵌權限。Gets the font embedding permission for the GlyphTypeface object.

FaceNames FaceNames FaceNames FaceNames

取得 GlyphTypeface 物件的字型名稱。Gets the face name for the GlyphTypeface object.

FamilyNames FamilyNames FamilyNames FamilyNames

取得 GlyphTypeface 物件的系列名稱。Gets the family name for the GlyphTypeface object.

FontUri FontUri FontUri FontUri

取得或設定 URIURI 物件的 GlyphTypefaceGets or sets the URIURI for the GlyphTypeface object.

GlyphCount GlyphCount GlyphCount GlyphCount

取得 GlyphTypeface 物件的字符數目。Gets the number of glyphs for the GlyphTypeface object.

Height Height Height Height

取得字元儲存格的高度,以相對於 em 大小的值表示。Gets the height of the character cell relative to the em size.

LeftSideBearings LeftSideBearings LeftSideBearings LeftSideBearings

取得前進向量前置端到圖像 (以 GlyphTypeface 物件表示) 之黑色方塊左邊緣的距離。Gets the distance from the leading end of the advance vector to the left edge of the black box for the glyphs represented by the GlyphTypeface object.

LicenseDescriptions LicenseDescriptions LicenseDescriptions LicenseDescriptions

取得 GlyphTypeface 物件的字型授權描述資訊。Gets the font license description information for the GlyphTypeface object.

ManufacturerNames ManufacturerNames ManufacturerNames ManufacturerNames

取得 GlyphTypeface 物件的字型製造商資訊。Gets the font manufacturer information for the GlyphTypeface object.

RightSideBearings RightSideBearings RightSideBearings RightSideBearings

取得黑色方塊右邊緣到圖像 (以 GlyphTypeface 物件表示) 之前進向量右端的距離。Gets the distance from the right edge of the black box to the right end of the advance vector for the glyphs represented by the GlyphTypeface object.

SampleTexts SampleTexts SampleTexts SampleTexts

取得 GlyphTypeface 物件的範例文字資訊。Gets the sample text information for the GlyphTypeface object.

Stretch Stretch Stretch Stretch

取得 FontStretch 物件的 GlyphTypeface 值。Gets the FontStretch value for the GlyphTypeface object.

StrikethroughPosition StrikethroughPosition StrikethroughPosition StrikethroughPosition

取得值,指出從基準線到字樣刪除線的距離。Gets a value that indicates the distance from the baseline to the strikethrough for the typeface.

StrikethroughThickness StrikethroughThickness StrikethroughThickness StrikethroughThickness

取得值,指出相對於字型 em 大小的刪除線粗細。Gets a value that indicates the thickness of the strikethrough relative to the font em size.

Style Style Style Style

取得 GlyphTypeface 物件的樣式。Gets the style for the GlyphTypeface object.

StyleSimulations StyleSimulations StyleSimulations StyleSimulations

取得或設定 StyleSimulations 物件的 GlyphTypefaceGets or sets the StyleSimulations for the GlyphTypeface object.

Symbol Symbol Symbol Symbol

取得值,表示 GlyphTypeface 字型是否符合 Unicode 編碼。Gets a value that indicates whether the GlyphTypeface font conforms to Unicode encoding.

TopSideBearings TopSideBearings TopSideBearings TopSideBearings

取得從垂直前進向量頂端到圖像 (以 GlyphTypeface 物件表示) 之黑色方塊上邊緣的距離。Gets the distance from the top end of the vertical advance vector to the top edge of the black box for the glyphs represented by the GlyphTypeface object.

Trademarks Trademarks Trademarks Trademarks

取得 GlyphTypeface 物件的商標注意事項資訊。Gets the trademark notice information for the GlyphTypeface object.

UnderlinePosition UnderlinePosition UnderlinePosition UnderlinePosition

取得 GlyphTypeface 中的底線位置。Gets the position of the underline in the GlyphTypeface.

UnderlineThickness UnderlineThickness UnderlineThickness UnderlineThickness

取得相對於 em 大小的底線粗細。Gets the thickness of the underline relative to em size.

VendorUrls VendorUrls VendorUrls VendorUrls

取得 GlyphTypeface 物件的廠商 URL 資訊。Gets the vendor URL information for the GlyphTypeface object.

Version Version Version Version

取得透過字型 'NAME' 表格解譯的字型版本。Gets the font face version interpreted from the font's 'NAME' table.

VersionStrings VersionStrings VersionStrings VersionStrings

取得透過字型 'NAME' 表格解譯之 GlyphTypeface 物件的版本字串資訊。Gets the version string information for the GlyphTypeface object interpreted from the font's 'NAME' table.

Weight Weight Weight Weight

取得 GlyphTypeface 物件表示之字型的已設計粗細。Gets the designed weight of the font represented by the GlyphTypeface object.

Win32FaceNames Win32FaceNames Win32FaceNames Win32FaceNames

取得字型 (以 GlyphTypeface 物件表示) 的 Win32 字體名稱。Gets the Win32 face name for the font represented by the GlyphTypeface object.

Win32FamilyNames Win32FamilyNames Win32FamilyNames Win32FamilyNames

取得字型 (以 GlyphTypeface 物件表示) 的 Win32 系列名稱。Gets the Win32 family name for the font represented by the GlyphTypeface object.

XHeight XHeight XHeight XHeight

針對 GlyphTypeface 物件所代表的字型,取得相對於 em 大小的西歐字型 x 高度。Gets the Western x-height relative to em size for the font represented by the GlyphTypeface object.

方法

ComputeSubset(ICollection<UInt16>) ComputeSubset(ICollection<UInt16>) ComputeSubset(ICollection<UInt16>) ComputeSubset(ICollection<UInt16>)

根據指定的字符集合,傳回字型子集的二進位檔映像。Returns the binary image of the font subset based on a specified collection of glyphs.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的 GlyphTypeface 物件。Determines whether the specified object is equal to the current GlyphTypeface object.

GetFontStream() GetFontStream() GetFontStream() GetFontStream()

傳回以 GlyphTypeface 物件表示的字型檔資料流。Returns the font file stream represented by the GlyphTypeface object.

GetGlyphOutline(UInt16, Double, Double) GetGlyphOutline(UInt16, Double, Double) GetGlyphOutline(UInt16, Double, Double) GetGlyphOutline(UInt16, Double, Double)

傳回 Geometry 值,這個值描述字型中單一圖像的路徑。Returns a Geometry value describing the path for a single glyph in the font.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作為 GlyphTypeface 的雜湊函式。Serves as a hash function for GlyphTypeface.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

明確介面實作

ISupportInitialize.BeginInit() ISupportInitialize.BeginInit() ISupportInitialize.BeginInit() ISupportInitialize.BeginInit()

如需這個成員的說明,請參閱 BeginInit()For a description of this member, see BeginInit().

ISupportInitialize.EndInit() ISupportInitialize.EndInit() ISupportInitialize.EndInit() ISupportInitialize.EndInit()

如需這個成員的說明,請參閱 EndInit()For a description of this member, see EndInit().

適用於

另請參閱