# OfficeHarfBuzzTextShapingProvider

Shapes OfficeIMO text runs with HarfBuzz OpenType GSUB/GPOS processing.

Class 

`OfficeIMO.Drawing.HarfBuzz`

**Namespace**

`OfficeIMO.Drawing.HarfBuzz`

**Assembly**

`OfficeIMO.Drawing.HarfBuzz`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeHarfBuzzTextShapingProvider.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Drawing.HarfBuzz/OfficeHarfBuzzTextShapingProvider.cs#L31)

**Implements**

`IOfficeTextShapingProvider` `IOfficeTextShapingProviderMetadata`

**Modifiers**

sealed

Shapes OfficeIMO text runs with HarfBuzz OpenType GSUB/GPOS processing.

## Inheritance

- object
- OfficeHarfBuzzTextShapingProvider

## Remarks

The provider is an optional adapter over the shared IOfficeTextShapingProvider contract. Core Drawing and PDF packages remain independent of HarfBuzz and its native assets.

## 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.

### Returned or exposed by 1

- Property [OfficeHarfBuzzTextShapingProvider.Instance](/api/drawing-harf-buzz/officeimo-drawing-harfbuzz-officeharfbuzztextshapingprovider/#property-instance)

Filter members 

Show inherited

## Methods

`public OfficeTextShapingResult? ShapeText(OfficeTextShapingRequest request)` [#](#method-shapetext-officeimo-drawing-officetextshapingrequest)

[OfficeHarfBuzzTextShapingProvider.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Drawing.HarfBuzz/OfficeHarfBuzzTextShapingProvider.cs#L31)

Shapes a Unicode run into glyphs in visual write order.

Parameters

**request OfficeIMO.Drawing.OfficeTextShapingRequest required**

Text, font bytes, metrics, and language context for the run.

Returns

`OfficeTextShapingResult?` A shaped glyph run, or null to use the renderer fallback.

## 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 static OfficeHarfBuzzTextShapingProvider Instance { get; }` [#](#property-instance)

[OfficeHarfBuzzTextShapingProvider.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Drawing.HarfBuzz/OfficeHarfBuzzTextShapingProvider.cs#L21)

Shared provider instance with a weak cache of parsed font faces.

`public OfficeTextShapingBackend Backend { get; }` [#](#property-backend)

[OfficeHarfBuzzTextShapingProvider.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Drawing.HarfBuzz/OfficeHarfBuzzTextShapingProvider.cs#L27)

Gets the shaping engine used by this provider.

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