Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Struct

OfficeShapedGlyph

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Base ValueType
Modifiers sealed

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

Accepted by parameters

Constructors

OfficeShapedGlyph 3 overloads
public OfficeShapedGlyph(Int32 glyphId, String unicodeText, Int32 textIndex) #

Creates a glyph that uses the font's nominal advance.

Parameters

glyphId System.Int32 requiredposition: 0
unicodeText System.String requiredposition: 1
textIndex System.Int32 requiredposition: 2
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 requiredposition: 0
unicodeText System.String requiredposition: 1
textIndex System.Int32 requiredposition: 2
advanceWidth System.Int32 requiredposition: 3
offsetX System.Int32 = 0 optionalposition: 4
offsetY System.Int32 = 0 optionalposition: 5
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 requiredposition: 0
unicodeText System.String requiredposition: 1
textIndex System.Int32 requiredposition: 2
advanceWidth System.Int32 requiredposition: 3
advanceHeight System.Int32 requiredposition: 4
offsetX System.Int32 requiredposition: 5
offsetY System.Int32 requiredposition: 6

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.