private TTF_SizeUNICODE ( |
||
font | ||
text | [ | |
w | int | |
h | int | |
return | int |
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(); }