# PdfTextGlyph

Immutable evidence for one encoded PDF glyph in a positioned text span.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[PdfTextGlyph.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Pdf/Reading/Text/PdfTextGlyph.cs#L18)

**Modifiers**

sealed

Immutable evidence for one encoded PDF glyph in a positioned text span.

## Inheritance

- object
- PdfTextGlyph

## Remarks

Native page coordinates use default user-space units: one unit is /UserUnit physical points (1/72 inch each), defaulting to 1. Local text/font and matrix values retain their native coordinate spaces. Explicit visual projections use their documented coordinates.

## Usage

Explore 1 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.

### Accepted by parameters 1

- Method [PdfTextSpan.TryGetGlyphs](/api/pdf/officeimo-pdf-pdftextspan/#method-trygetglyphs-collections-generic-ireadonlylist-officeimo-pdf-pdftextglyph) parameter `glyphs`

Filter members 

Show inherited

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

## Properties

`public string Text { get; }` [#](#property-text)

[PdfTextGlyph.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Pdf/Reading/Text/PdfTextGlyph.cs#L18)

Decoded text belonging to this glyph; a ligature can contain several Unicode characters.

`public int TextStart { get; }` [#](#property-textstart)

[PdfTextGlyph.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Pdf/Reading/Text/PdfTextGlyph.cs#L20)

UTF-16 offset in the owning span's [PdfTextSpan.Text](/api/pdf/officeimo-pdf-pdftextspan/).

`public int TextLength { get; }` [#](#property-textlength)

[PdfTextGlyph.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Pdf/Reading/Text/PdfTextGlyph.cs#L22)

Number of UTF-16 code units belonging to this glyph.

`public double X { get; }` [#](#property-x)

[PdfTextGlyph.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Pdf/Reading/Text/PdfTextGlyph.cs#L24)

Glyph origin in page user-space points.

`public double Y { get; }` [#](#property-y)

[PdfTextGlyph.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Pdf/Reading/Text/PdfTextGlyph.cs#L26)

Glyph origin in page user-space points.

`public double Advance { get; }` [#](#property-advance)

[PdfTextGlyph.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Pdf/Reading/Text/PdfTextGlyph.cs#L28)

Baseline advance in page user-space units, including authored spacing.

`public double PaintedAdvance { get; }` [#](#property-paintedadvance)

[PdfTextGlyph.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Pdf/Reading/Text/PdfTextGlyph.cs#L30)

Glyph width in page user-space units before additional character or word spacing.

`public IReadOnlyList<byte> EncodedBytes { get; }` [#](#property-encodedbytes)

[PdfTextGlyph.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Pdf/Reading/Text/PdfTextGlyph.cs#L32)

Original encoded PDF character code; callers cannot mutate the reader's bytes.

<!-- PowerForge markdown artifact sha256:2ADB057CC73665C573C20D7747026F2B668BE8BD82282AC93D7F16C7C57F5E67 -->
