TTF_SizeUTF8() private méthode

private TTF_SizeUTF8 ( IntPtr font, [ text, int &w, int &h ) : int
font System.IntPtr
text [
w int
h int
Résultat int
Exemple #1
0
        public void SizeUTF8()
        {
            this.Quit();
            this.Init();
            IntPtr fontPtr = SdlTtf.TTF_OpenFont("../../FreeSans.ttf", 10);
            int    w;
            int    h;

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