Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Interface

IOfficeBoundedFontProgram

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
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 implementations.

Methods

public abstract List<List<OfficePoint>> GetShapedTextContoursBounded(string text, OfficeTextShapingResult result, double x, double y, double fontSize, int maximumPointCount, CancellationToken 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) #

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