Add missing Measure methods.

This commit is contained in:
the_fiddler 2008-11-25 16:11:31 +00:00
parent 71addb4923
commit 8e7348d085

View file

@ -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