Exemple #1
0
        public async Task AddSpecifiedDigraphsToFontTest(string inDir, string charset, string expectedPng, string expectedPar)
        {
            using Font font = Font.CreateFromCharsDir(inDir);
            char[] set = charset.ToCharArray();
            font.AddDigraphsToFont(set, set);
            font.CompressBitmap();
            font.SaveBigBitmap(expectedPng);
            using FileStream outStream = new FileStream(expectedPar, FileMode.Create, FileAccess.Write);
            await font.WriteFontPar(outStream);

            //bool eq = Compare.CompareFiles(expectedPar, "temp.par");
            //eq &= Compare.CompareFiles(expectedPng, "temp.png");
            //File.Delete("temp.par");
            //File.Delete("temp.png");
            //Assert.IsTrue(eq);
        }