diff --git a/Source/OpenTK/Fonts/ILayoutProvider.cs b/Source/OpenTK/Fonts/ILayoutProvider.cs index 594f8548..f9cbbc53 100644 --- a/Source/OpenTK/Fonts/ILayoutProvider.cs +++ b/Source/OpenTK/Fonts/ILayoutProvider.cs @@ -5,8 +5,15 @@ using System.Drawing; namespace OpenTK.Fonts { - interface ILayoutProvider + /// + /// Defines the interface for a TextPrinter. + /// + public interface ITextPrinter { - void PerformLayout(string text, IFont font, RectangleF layoutRect, StringAlignment alignment, bool rightToLeft); + void Prepare(string text, TextureFont font, out TextHandle handle); + void Prepare(string text, TextureFont font, out TextHandle handle, float width, bool wordWarp); + void Prepare(string text, TextureFont font, out TextHandle handle, float width, bool wordWarp, StringAlignment alignment); + void Prepare(string text, TextureFont font, out TextHandle handle, float width, bool wordWarp, StringAlignment alignment, bool rightToLeft); + void Draw(TextHandle handle); } }