var options = new RendererOptions()
{
Size = 30
};
var renderer = new Renderer(typeface, raterizer, options)
var stringSize = renderer.Measure("Hello\nWorld");
string size would expose and Height and Width.
I imagine it would just run the same code as Render(...) except just skipping the RenderGlyph(...) call and spitting out the final yy and xx as height and widths (+/- a line height addition)
Add a option to
Renderer
to measure a string.string size would expose and
Height
andWidth
.I imagine it would just run the same code as
Render(...)
except just skipping theRenderGlyph(...)
call and spitting out the finalyy
andxx
as height and widths (+/- a line height addition)