mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-24 07:21:03 +00:00
Add missing Measure methods.
This commit is contained in:
parent
71addb4923
commit
8e7348d085
|
@ -436,6 +436,25 @@ namespace OpenTK.Graphics
|
|||
|
||||
#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
|
||||
|
||||
#region Private Members
|
||||
|
|
Loading…
Reference in a new issue