# OfficeShapedGlyph

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

Struct 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeTextShaping.cs:392](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L392)

**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

- Property [OfficeTextShapingResult.Glyphs](/api/core/officeimo-drawing-officetextshapingresult/#property-glyphs)

### Accepted by parameters 1

- Constructor [OfficeTextShapingResult.OfficeTextShapingResult](/api/core/officeimo-drawing-officetextshapingresult/#constructor-ctor-collections-generic-ienumerable-officeimo-drawing-officeshapedglyph) parameter `glyphs`

Filter members 

Show inherited

## Constructors

OfficeShapedGlyph 3 overloads

`public OfficeShapedGlyph(int glyphId, string unicodeText, int textIndex)` [#](#constructor-ctor-int32-string-int32)

[OfficeTextShaping.cs:392](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L392)

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)` [#](#constructor-ctor-int32-string-int32-int32-int32-int32)

[OfficeTextShaping.cs:403](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L403)

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)` [#](#constructor-ctor-int32-string-int32-int32-int32-int32-int32)

[OfficeTextShaping.cs:415](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L415)

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**

## Inherited Methods

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from ValueType

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from ValueType

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public override string? ToString()` [#](#method-tostring)

Inherited from ValueType

Returns

`string?`

## Properties

`public int GlyphId { get; }` [#](#property-glyphid)

[OfficeTextShaping.cs:472](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L472)

Font glyph identifier.

`public string UnicodeText { get; }` [#](#property-unicodetext)

[OfficeTextShaping.cs:475](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L475)

Logical Unicode text represented by this glyph.

`public int TextIndex { get; }` [#](#property-textindex)

[OfficeTextShaping.cs:478](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L478)

UTF-16 source index where [OfficeShapedGlyph.UnicodeText](/api/core/officeimo-drawing-officeshapedglyph/) begins.

`public int? AdvanceWidth { get; }` [#](#property-advancewidth)

[OfficeTextShaping.cs:481](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L481)

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

`public int? AdvanceHeight { get; }` [#](#property-advanceheight)

[OfficeTextShaping.cs:484](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L484)

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

`public int OffsetX { get; }` [#](#property-offsetx)

[OfficeTextShaping.cs:487](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L487)

Horizontal placement offset in font design units.

`public int OffsetY { get; }` [#](#property-offsety)

[OfficeTextShaping.cs:490](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextShaping.cs#L490)

Vertical placement offset in font design units.

<!-- PowerForge markdown artifact sha256:CE10E2D98429917EE8AEA8016E078E7E4CD4DBA673D4A6F91635A9B978D5F254 -->
