public static void DrawString(this IGsGraphics graphics, GsFont font, string text, float x, float y, float width, float height, GsColor color, GsAlignment alignment) { var size = GsTextMeasurer.MeasureString(font, text); var pos = CalculatePosition(size, x, y, width, height, alignment); graphics.DrawString(font, text, pos.X, pos.Y, color); }
public static void DrawString(this IGsGraphics graphics, GsFont font, string text, GsVector pos, GsColor color) { graphics.DrawString(font, text, pos.X, pos.Y, color); }