TTF_SizeUNICODE() private method

private TTF_SizeUNICODE ( IntPtr font, [ text, int &w, int &h ) : int
font System.IntPtr
text [
w int
h int
return int
Exemplo n.º 1
0
        public void SizeUNICODE()
        {
            this.Quit();
            this.Init();
            IntPtr fontPtr = SdlTtf.TTF_OpenFont("../../FreeSans.ttf", 10);
            int    w;
            int    h;

            SdlTtf.TTF_SizeUNICODE(fontPtr, "hello", out w, out h);
            Console.WriteLine("w: " + w.ToString());
            Console.WriteLine("h: " + h.ToString());
            Assert.AreEqual(w, 22);
            Assert.AreEqual(17, h);
            this.Quit();
        }