Exemplo n.º 1
0
        protected override void Load(FileStream fs, string fileName)
        {
            using var sr = new StreamReader(fs);
            var str  = sr.ReadToEnd();
            var font = JsonConvert.DeserializeObject <FontCollectionDefinition>(str);

            fontRepository.RegisterFontCollection(font.fontName, font.fontSize, font.fonts);
        }