コード例 #1
0
 public static void helperDrawFont(Graphics g, PogsFont mainFont, string text, Brush brush, int x, int y, FontAlign align = FontAlign.Left, int widthLimit = 0, PogsFont smallFont = null)
 {
     PogsFontRenderer.drawText(g, text, mainFont, brush, x, y, align, widthLimit, smallFont);
 }
コード例 #2
0
 protected static bool isTextToLong(string text, int maxWidth)
 {
     return(PogsFontRenderer.getTextWidth(PogsFonts.font3, PogsFonts.font4, text) > maxWidth);
 }