/// <summary>
 /// Generates the shapes corresponding the glyphs described by the font and with the settings withing the FontSpan.
 /// </summary>
 /// <param name="builder">The renderer.</param>
 /// <param name="text">The text to generate glyphs for.</param>
 /// <param name="style">The style and settings to use while rendering the glyphs.</param>
 /// <param name="output">The output for the path.</param>
 /// <returns>The bounds of the enclosing path.</returns>
 public static RectangleF GenerateGlyphs(IGlyphBuilder builder, ReadOnlySpan <char> text, RendererOptions style, ICollection <IPath> output)
 {
     TextRenderer.RenderText(builder, text, style);
     return(builder.GetPath(output));
 }
 /// <summary>
 /// Generates the shapes corresponding the glyphs described by the font and with the settings withing the FontSpan.
 /// </summary>
 /// <param name="builder">The renderer.</param>
 /// <param name="text">The text to generate glyphs for.</param>
 /// <param name="style">The style and settings to use while rendering the glyphs.</param>
 /// <returns>The <see cref="PathCollection"/>.</returns>
 public static IPathCollection GenerateGlyphs(IGlyphBuilder builder, ReadOnlySpan <char> text, RendererOptions style)
 {
     TextRenderer.RenderText(builder, text, style);
     return(builder.BuildPath());
 }