Ejemplo n.º 1
0
        private static void SetSymbolContent(SymbolChar symbol, ParagraphContext context, string selector)
        {
            string symbolChar =
                new string(new char[] {
                '\'',
                Convert.ToChar(Convert.ToUInt32(symbol.Char.Value, 16)),
                '\''
            });

            context.CustomCss.AddAttribute(selector, "content", symbolChar);
        }
Ejemplo n.º 2
0
        private static void SetSymbolFont(SymbolChar symbol, ParagraphContext context, string selector)
        {
            string fontFamily = symbol.Font?.Value ?? "Symbol";

            context.CustomCss.AddAttribute(selector, "font-family", fontFamily);
        }