public interface FontProvider
The methods in this interface allow to get the width and height of a text string, and to get a WatermarkBox object that represents the bounding box of a text string.
| 限定符和类型 | 方法和说明 |
|---|---|
WatermarkBox |
getStringBox(String... text)
Get the watermark box of the text.
|
float |
getStringHeight()
Get
text height in the font. |
float |
getStringWidth(String text)
Get
text width in the font. |
float getStringWidth(String text)
text width in the font.text - watermark textfloat getStringHeight()
text height in the font.WatermarkBox getStringBox(String... text)
text - textCopyright © 2024. All rights reserved.