Exemplo n.º 1
0
        public FontManager(IWebHostEnvironment env)
        {
            FontCollection collection = new FontCollection();
            var            fontFamily = collection.Install(env.GetFontPath("OpenSans-Bold.ttf"));

            DefaultFont = fontFamily.CreateFont(50.0f, FontStyle.Bold);
        }