Beispiel #1
0
        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);
        }
Beispiel #2
0
 public PaduakDisposableFont()
 {
     _face = new PaduakDisposableFace();
     Font  = Graphite2Api.MakeFont(20, _face.Face);
 }