public FontRenderer(FontRendererParams fontRendererParams) { FontRendererParams = fontRendererParams; AsciiSetSize = 256; Chars = new char[AsciiSetSize]; for (int i = 0; i < AsciiSetSize; i++) { Chars [i] = (char)(i); /// IsControl chars are not representable (I think this is the right method?) /// so set them to empty if (char.IsControl (Chars [i])) Chars [i] = ' '; } }
public FontRenderer(FontRendererParams fontRendererParams) { FontRendererParams = fontRendererParams; AsciiSetSize = 256; Chars = new char[AsciiSetSize]; for (int i = 0; i < AsciiSetSize; i++) { Chars [i] = (char)(i); /// IsControl chars are not representable (I think this is the right method?) /// so set them to empty if (char.IsControl(Chars [i])) { Chars [i] = ' '; } } }