Add an overload for GetFontSize with a float parameter to IFont
Ven0maus opened this issue · 1 comments
Ven0maus commented
Nice to have:
public Point GetFontSize(float size)
{
return new Point((int)(GlyphWidth * size), (int)(GlyphHeight * size));
}
Thraka commented
Thought about but I don't think it's really useful to add to the interface. The easiest way to do that would just be to do this in your own code:
Point fontSize = font.GetFontSize(Sizes.One) * floatSize;