public final class FontSizeUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static float |
approximateFontSizeToFitSingleLine(PdfFont localFont,
Rectangle bBox,
String value,
float minValue,
float borderWidth)
Calculates the font size that will fit the text in the given rectangle.
|
public static float approximateFontSizeToFitSingleLine(PdfFont localFont, Rectangle bBox, String value, float minValue, float borderWidth)
localFont - the font to be usedbBox - the bounding box of the fieldvalue - the value of the fieldminValue - the minimum font sizeborderWidth - the border width of the fieldCopyright © 1998–2023 Apryse Group NV. All rights reserved.