mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-09-08 19:26:52 +00:00
Add missing Measure methods.
This commit is contained in:
parent
71addb4923
commit
8e7348d085
|
@ -436,6 +436,25 @@ namespace OpenTK.Graphics
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Measure
|
||||||
|
|
||||||
|
public TextExtents Measure(string text, Font font)
|
||||||
|
{
|
||||||
|
return Measure(text, font, 0, RectangleF.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TextExtents Measure(string text, Font font, TextPrinterOptions options)
|
||||||
|
{
|
||||||
|
return Measure(text, font, options, RectangleF.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TextExtents Measure(string text, Font font, TextPrinterOptions options, RectangleF layoutRectangle)
|
||||||
|
{
|
||||||
|
return glyph_rasterizer.MeasureText(new TextBlock(text, font, options, layoutRectangle));
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Private Members
|
#region Private Members
|
||||||
|
|
Loading…
Reference in a new issue