public SharedLibary.Rectangle GetTextBounds(SharedLibary.Font font, string text) { return(new SharedLibary.Rectangle ( 0, 0, SplashKit.TextWidth(text, GetSplashKitFont(font), font.Size), SplashKit.TextHeight(text, GetSplashKitFont(font), font.Size) )); }
public SharedLibary.Rectangle GetTextBounds(SharedLibary.Font font, string text) { return(new SharedLibary.Rectangle ( 0, 0, SwinGame.TextWidth(GetSwinGameFont(font), text), SwinGame.TextHeight(GetSwinGameFont(font), text) )); }
private SplashKitSDK.Font GetSplashKitFont(SharedLibary.Font font) { return(SplashKit.LoadFont(font.ID, font.FileLocation)); }
private SwinGameSDK.Font GetSwinGameFont(SharedLibary.Font font) { return(SwinGameSDK.SwinGame.LoadFontNamed(font.ID, font.FileLocation, font.Size)); }
public override void DrawText(SharedLibary.Colour color, SharedLibary.Point2D point, SharedLibary.Font font, string text) { SwinGame.DrawText(text, ToSwinGameColor(color), GetSwinGameFont(font), (float)point.X, (float)point.Y); }