API Reference
Interface
IOfficeBoundedFontProgram
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, Int32 maximumPointCount, CancellationToken cancellationToken) #Returns:
List<List<OfficePoint>>Returns externally shaped contours while enforcing the maximum total point count.
Parameters
- text System.String
- result OfficeIMO.Drawing.OfficeTextShapingResult
- x System.Double
- y System.Double
- fontSize System.Double
- maximumPointCount System.Int32
- cancellationToken System.Threading.CancellationToken
public abstract List<List<OfficePoint>> GetTextContoursBounded(String text, Double x, Double y, Double fontSize, Int32 maximumPointCount, CancellationToken cancellationToken) #Returns:
List<List<OfficePoint>>Returns contours while enforcing the maximum total point count.
Parameters
- text System.String
- x System.Double
- y System.Double
- fontSize System.Double
- maximumPointCount System.Int32
- cancellationToken System.Threading.CancellationToken