Esempio n. 1
0
        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] = ' ';
            }
        }
Esempio n. 2
0
        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] = ' ';
                }
            }
        }