TTF_GlyphMetrics() private method

private TTF_GlyphMetrics ( IntPtr font, short ch, int &minx, int &maxx, int &miny, int &maxy, int &advance ) : int
font System.IntPtr
ch short
minx int
maxx int
miny int
maxy int
advance int
return int
コード例 #1
0
        public void GlyphMetrics()
        {
            this.Quit();
            this.Init();
            IntPtr fontPtr = SdlTtf.TTF_OpenFont("../../FreeSans.ttf", 12);
            int    minx;
            int    miny;
            int    maxx;
            int    maxy;
            int    advance;
            int    result;

            result = SdlTtf.TTF_GlyphMetrics(fontPtr, 1, out minx, out maxx, out miny, out maxy, out advance);
            Assert.AreEqual(-1, minx);
            Assert.AreEqual(4, maxx);
            Assert.AreEqual(0, miny);
            Assert.AreEqual(8, maxy);
            Assert.AreEqual(5, advance);
//			Console.WriteLine("minx: " + minx.ToString());
//			Console.WriteLine("maxx: " + maxx.ToString());
//			Console.WriteLine("miny: " + miny.ToString());
//			Console.WriteLine("maxy: " + maxy.ToString());
//			Console.WriteLine("advance: " + advance.ToString());
            this.Quit();
        }