public SvgFontContext MapFont(GraphicsContext context)
        {
            var family = !string.IsNullOrEmpty(context.FontFamily) ? context.FontFamily : DefaultFont.FontFamily.Name;
            var font   = new SvgFontContext
            {
                Family             = family,
                Size               = (float)context.FontSizeInPoints,
                Weight             = MapFontWeight(context.FontFace),
                CharacterExpansion = (float)context.CharacterExpansion,
                LineHeight         = (float)context.LineHeight
            };

            return(font);
        }
        public SvgFontContext MapFont(GraphicsContext context)
        {
            var family = !string.IsNullOrEmpty(context.FontFamily) ? context.FontFamily : DefaultFont.FontFamily.Name;
            var font = new SvgFontContext
            {
                Family = family,
                Size = (float)context.FontSizeInPoints,
                Weight = MapFontWeight(context.FontFace),
                CharacterExpansion = (float)context.CharacterExpansion,
                LineHeight = (float)context.LineHeight
            };

            return font;
        }