Click or drag to resize
CanvasFontFace.GetRecommendedGridFit Method
Determines the recommended grid fit for the font, using the specified size and rendering constraints.

Namespace:  Microsoft.Graphics.Canvas.Text
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public CanvasTextGridFit GetRecommendedGridFit(
	float fontSize,
	float dpi,
	CanvasTextMeasuringMode measuringMode,
	CanvasTextRenderingParameters renderingParameters,
	Matrix3x2 transform,
	bool isSideways,
	CanvasAntialiasing outlineThreshold
)

Parameters

fontSize
Type: System.Single
dpi
Type: System.Single
measuringMode
Type: Microsoft.Graphics.Canvas.Text.CanvasTextMeasuringMode
renderingParameters
Type: Microsoft.Graphics.Canvas.Text.CanvasTextRenderingParameters
transform
Type: System.Numerics.Matrix3x2
isSideways
Type: System.Boolean
outlineThreshold
Type: Microsoft.Graphics.Canvas.CanvasAntialiasing

Return Value

Type: CanvasTextGridFit
See Also