static public void DrawBoldCenterText(int y, string text, IntPtr font) { int x = Glut.glutStrokeLength(font, text); x = Globals.ScreenWidthOver2 - x / 2; Gl.glRasterPos2f(x, y); for (int i = 0; i < text.Length; i++) { Glut.glutBitmapCharacter(font, text[i]); } }
static public int FontBoldWidth(IntPtr font, string text) { return(Glut.glutStrokeLength(font, text)); }