public void MakeFileFaceWithSegCache_UsingPadaukFont_NonNullFaceIsReturned() { IntPtr gr_face = Graphite2Api.MakeFileFaceWithSegCache(PaduakFontLocation, 100, 0); Assert.AreNotEqual(IntPtr.Zero, gr_face); Graphite2Api.FaceDestroy(gr_face); }
public void MakeFont_UsingPadaukFont_NonNullFontIsReturned() { IntPtr gr_face = Graphite2Api.MakeFileFace(PaduakFontLocation, 0); IntPtr gr_font = Graphite2Api.MakeFont(20, gr_face); Assert.AreNotEqual(IntPtr.Zero, gr_font); Graphite2Api.FontDestroy(gr_font); Graphite2Api.FaceDestroy(gr_face); }
public void MakeFontWithAdvanceFn_UsingPadaukFont_NonNullFontIsReturned() { IntPtr gr_face = Graphite2Api.MakeFileFace(PaduakFontLocation, 0); Graphite2Api.AdvanceFn advance = (IntPtr appFontHandle, UInt16 glyphid) => 0; IntPtr gr_font = Graphite2Api.MakeFontWithAdvanceFn(20, IntPtr.Zero, advance, gr_face); Assert.AreNotEqual(IntPtr.Zero, gr_font); Graphite2Api.FontDestroy(gr_font); Graphite2Api.FaceDestroy(gr_face); }
public void Dispose() { Graphite2Api.FaceDestroy(Face); }
public void FaceDestroy_Null_NoExceptionThrown() { Graphite2Api.FaceDestroy(IntPtr.Zero); }