// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
using System;
namespace SixLabors.Fonts.Rendering {
///
/// A surface that can have a glyph rendered to it as a series of actions.
///
public static class GlyphRendererExtensions
{
///
/// Renders the text.
///
/// The target renderer surface.
/// The text.
/// The options.
/// Returns the original
public static IGlyphRenderer Render(this IGlyphRenderer renderer, ReadOnlySpan text, TextOptions options)
{
new TextRenderer(renderer).RenderText(text, options);
return renderer;
}
}
}