TTF_FontFaceIsFixedWidth() private method

private TTF_FontFaceIsFixedWidth ( IntPtr font ) : int
font System.IntPtr
return int
Example #1
0
        public void FontFaceIsFixedWidth()
        {
            this.Quit();
            this.Init();
            IntPtr fontPtr = SdlTtf.TTF_OpenFont("../../FreeSans.ttf", 12);

            Assert.AreEqual(SdlTtf.TTF_FontFaceIsFixedWidth(fontPtr), 0);
            IntPtr fontPtrMono = SdlTtf.TTF_OpenFont("../../FreeMono.ttf", 12);

            Assert.IsTrue(SdlTtf.TTF_FontFaceIsFixedWidth(fontPtrMono) != 0);
            //Console.WriteLine("FontFaceIsFixedWidth:" +
            //	SdlTtf.TTF_FontFaceIsFixedWidth(fontPtrMono).ToString());
            this.Quit();
        }