Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OfficeShapedGlyph

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Base
ValueType
Modifiers
sealed

Maps one shaped font glyph back to its logical Unicode source.

Inheritance

  • ValueType
  • OfficeShapedGlyph

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 1

Constructors

OfficeShapedGlyph 3 overloads
public OfficeShapedGlyph(int glyphId, string unicodeText, int textIndex) #

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

Parameters

glyphId int required
unicodeText string required
textIndex int required
public OfficeShapedGlyph(int glyphId, string unicodeText, int textIndex, int advanceWidth, int offsetX = 0, int offsetY = 0) #

Creates a positioned glyph expressed in the request font's design units.

Parameters

glyphId int required
unicodeText string required
textIndex int required
advanceWidth int required
offsetX int = 0 optional
offsetY int = 0 optional
public OfficeShapedGlyph(int glyphId, string unicodeText, int textIndex, int advanceWidth, int advanceHeight, int offsetX, int offsetY) #

Creates a positioned glyph with horizontal and vertical advances expressed in font design units.

Parameters

glyphId int required
unicodeText string required
textIndex int required
advanceWidth int required
advanceHeight int required
offsetX int required
offsetY int required

Properties

public int GlyphId { get; } #

Font glyph identifier.

public string UnicodeText { get; } #

Logical Unicode text represented by this glyph.

public int TextIndex { get; } #

UTF-16 source index where OfficeShapedGlyph.UnicodeText begins.

public int? AdvanceWidth { get; } #

Optional shaped advance in font design units; null uses the nominal glyph width.

public int? AdvanceHeight { get; } #

Optional shaped vertical advance in font design units; null means no vertical pen movement.

public int OffsetX { get; } #

Horizontal placement offset in font design units.

public int OffsetY { get; } #

Vertical placement offset in font design units.