Click or drag to resize

TextWidgetAnnotationGenerateAutoFontSize Method

Calculates the font size used for auto-sized fonts.

Namespace:  Atalasoft.PdfDoc.Generating.Annotations
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public static double GenerateAutoFontSize(
	PdfTextAppearance pdfTextAppearance,
	PdfFontResource pdfFontResource,
	string text,
	PdfBounds pdfBounds
)

Parameters

pdfTextAppearance
Type: Atalasoft.PdfDoc.Generating.RenderingPdfTextAppearance
pdfFontResource
Type: Atalasoft.PdfDoc.Generating.ResourceHandling.FontsPdfFontResource
text
Type: SystemString
pdfBounds
Type: Atalasoft.PdfDoc.GeometryPdfBounds

Return Value

Type: Double
See Also