private TTF_SizeUTF8 ( |
||
font | ||
text | [ | |
w | int | |
h | int | |
Résultat | int |
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(); }