API Reference
OfficeShapedGlyph
Maps one shaped font glyph back to its logical Unicode source.
Inheritance
- ValueType
- OfficeShapedGlyph
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property OfficeTextShapingResult.Glyphs
Accepted by parameters
- Constructor OfficeTextShapingResult.OfficeTextShapingResult
- Constructor OfficeTextShapingResult.OfficeTextShapingResult
Constructors
public OfficeShapedGlyph(Int32 glyphId, String unicodeText, Int32 textIndex) #Creates a glyph that uses the font's nominal advance.
Parameters
- glyphId System.Int32
- unicodeText System.String
- textIndex System.Int32
public OfficeShapedGlyph(Int32 glyphId, String unicodeText, Int32 textIndex, Int32 advanceWidth, Int32 offsetX = 0, Int32 offsetY = 0) #Creates a positioned glyph expressed in the request font's design units.
Parameters
- glyphId System.Int32
- unicodeText System.String
- textIndex System.Int32
- advanceWidth System.Int32
- offsetX System.Int32 = 0
- offsetY System.Int32 = 0
public OfficeShapedGlyph(Int32 glyphId, String unicodeText, Int32 textIndex, Int32 advanceWidth, Int32 advanceHeight, Int32 offsetX, Int32 offsetY) #Creates a positioned glyph with horizontal and vertical advances expressed in font design units.
Parameters
- glyphId System.Int32
- unicodeText System.String
- textIndex System.Int32
- advanceWidth System.Int32
- advanceHeight System.Int32
- offsetX System.Int32
- offsetY System.Int32
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Int32 GlyphId { get; } #Font glyph identifier.
public String UnicodeText { get; } #Logical Unicode text represented by this glyph.
public Int32 TextIndex { get; } #UTF-16 source index where UnicodeText begins.
public Nullable<Int32> AdvanceWidth { get; } #Optional shaped advance in font design units; null uses the nominal glyph width.
public Nullable<Int32> AdvanceHeight { get; } #Optional shaped vertical advance in font design units; null means no vertical pen movement.
public Int32 OffsetX { get; } #Horizontal placement offset in font design units.
public Int32 OffsetY { get; } #Vertical placement offset in font design units.