TextMetrics
classin packageklyn.gui.windows
public class TextMetrics:
TextMetrics
Result of `Painter.measureText`.
metrics = TextMetrics(64.0, 9.0, 3.0, 12.0)
print(metrics.width)
Properties
Modifier and Type Member Description
public property ascent
ascent as Double
Estimated ascent.
public property descent
descent as Double
Estimated descent.
public property height
height as Double
Estimated total height.
public property width
width as Double
Estimated text width.
Constructors
Modifier and Type Member Description
public TextMetrics
TextMetrics(width as Double = 0.0, ascent as Double = 0.0, descent as Double = 0.0, height as Double = 0.0):
No summary.
Methods
Modifier and Type Member Description
public override toString
toString() as String:
No summary.