TTF_SetFontStyle() private method

private TTF_SetFontStyle ( IntPtr font, int style ) : void
font System.IntPtr
style int
return void
Ejemplo n.º 1
0
        public void SetGetFontStyle()
        {
            this.Quit();
            this.Init();
            IntPtr fontPtr = SdlTtf.TTF_OpenFont("../../FreeSans.ttf", 10);

            SdlTtf.TTF_SetFontStyle(fontPtr, SdlTtf.TTF_STYLE_BOLD | SdlTtf.TTF_STYLE_ITALIC);
            Assert.AreEqual(SdlTtf.TTF_STYLE_BOLD | SdlTtf.TTF_STYLE_ITALIC, SdlTtf.TTF_GetFontStyle(fontPtr));
            this.Quit();
        }