| | 1 | | using Imagini.Drawing; |
| | 2 | | using Imagini.Fonts; |
| | 3 | | using Imagini.Fonts.Renderers; |
| | 4 | |
|
| | 5 | | namespace Imagini.Fonts |
| | 6 | | { |
| | 7 | | /// <summary> |
| | 8 | | /// Contains Graphics class related extension methods. |
| | 9 | | /// </summary> |
| | 10 | | public static class GraphicsExtensions |
| | 11 | | { |
| | 12 | | /// <summary> |
| | 13 | | /// Creates a text renderer for the specified font. |
| | 14 | | /// </summary> |
| | 15 | | public static ITextRenderer CreateTextRenderer( |
| | 16 | | this Graphics graphics, SpriteFont font, |
| | 17 | | TextureScalingQuality quality = TextureScalingQuality.Linear) => |
| 6 | 18 | | new GraphicsTextRenderer(graphics, font, quality); |
| | 19 | | } |
| | 20 | | } |