# IOfficeBoundedFontProgram

Optional bounded outline contract for font programs that can stop contour expansion promptly.

Interface 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeFontPrograms.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeFontPrograms.cs#L74)

**Implements**

`IOfficeFontProgram`

**Modifiers**

abstract

Optional bounded outline contract for font programs that can stop contour expansion promptly. Renderers use this seam for cancellation and untrusted-input output budgets while retaining compatibility with existing [IOfficeFontProgram](/api/core/officeimo-drawing-iofficefontprogram/) implementations.

Filter members 

Show inherited

## Methods

`public abstract List<List<OfficePoint>> GetShapedTextContoursBounded(string text, OfficeTextShapingResult result, double x, double y, double fontSize, int maximumPointCount, CancellationToken cancellationToken)` [#](#method-getshapedtextcontoursbounded-string-officeimo-drawing-officetextshapingresult-double-double-double-int32-threading-cancellationtoken)

Returns externally shaped contours while enforcing the maximum total point count.

Parameters

**text string required**

**result OfficeIMO.Drawing.OfficeTextShapingResult required**

**x double required**

**y double required**

**fontSize double required**

**maximumPointCount int required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`List<List<OfficePoint>>`

`public abstract List<List<OfficePoint>> GetTextContoursBounded(string text, double x, double y, double fontSize, int maximumPointCount, CancellationToken cancellationToken)` [#](#method-gettextcontoursbounded-string-double-double-double-int32-threading-cancellationtoken)

Returns contours while enforcing the maximum total point count.

Parameters

**text string required**

**x double required**

**y double required**

**fontSize double required**

**maximumPointCount int required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`List<List<OfficePoint>>`

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