# IOfficeTextShapingProvider

Provides externally shaped glyph runs to OfficeIMO renderers without requiring a shaping-engine dependency.

Interface 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Modifiers**

abstract

Provides externally shaped glyph runs to OfficeIMO renderers without requiring a shaping-engine dependency.

## Remarks

A host can adapt HarfBuzz, DirectWrite, Core Text, or another shaping engine once and reuse it across PDF and other OfficeIMO renderers. Returning null declines a run and lets the consuming renderer use its dependency-free fallback.

## Usage

Explore 7 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 4

- Property [OfficeDrawingRasterRenderOptions.TextShapingProvider](/api/core/officeimo-drawing-officedrawingrasterrenderoptions/#property-textshapingprovider)
- Property [OfficeImageExportOptions.TextShapingProvider](/api/core/officeimo-drawing-officeimageexportoptions/#property-textshapingprovider)
- Property [OfficeRasterTextOptions.TextShapingProvider](/api/core/officeimo-drawing-officerastertextoptions/#property-textshapingprovider)
- Property [OfficeRenderingProfile.TextShapingProvider](/api/core/officeimo-drawing-officerenderingprofile/#property-textshapingprovider)

### Accepted by parameters 3

- Method [OfficeFontFallbackPack.CreateRenderingProfile](/api/core/officeimo-drawing-officefontfallbackpack/#method-createrenderingprofile-officeimo-drawing-iofficetextshapingprovider-string-officeimo-drawing-iofficerasterimagecodec-officeimo-drawing-officeimageexportpolicy) parameter `textShapingProvider`
- Constructor [OfficeRasterCanvas.OfficeRasterCanvas](/api/core/officeimo-drawing-officerastercanvas/#constructor-ctor-officeimo-drawing-officerasterimage-officeimo-drawing-officetruetypefont-officeimo-drawing-officefontfacecollection-officeimo-drawing-iofficetextshapingprovider-string-collections-generic-icollection-officeimo-drawing-officeimageexportdiagnostic-string-threading-cancellationtoken) parameter `textShapingProvider`
- Constructor [OfficeRenderingProfile.OfficeRenderingProfile](/api/core/officeimo-drawing-officerenderingprofile/#constructor-ctor-string-officeimo-drawing-officefontfacecollection-officeimo-drawing-iofficetextshapingprovider-string-officeimo-drawing-iofficerasterimagecodec-officeimo-drawing-officeimageexportpolicy) parameter `textShapingProvider`

Filter members 

Show inherited

## Methods

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

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.

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