Exemplo n.º 1
0
 public UnicodeBlock(String name, UnicodeBlockRange[] blocks, FontTypeEnum fontType, bool useEastAsiaIfhintIsEastAsia)
 {
     this.Name = name;
     this.Ranges.AddRange(blocks);
     this.FontType = fontType;
     this.UseEastAsiaIfhintIsEastAsia = useEastAsiaIfhintIsEastAsia;
 }
Exemplo n.º 2
0
        protected string FontType2CSS(FontTypeEnum fontType)
        {
            switch (fontType)
            {
            case FontTypeEnum.Normal: return("font-style:normal;");

            case FontTypeEnum.Bold: return("font-weight:bold;");

            case FontTypeEnum.Italic: return("font-style:italic;");

            case FontTypeEnum.BoldItalic: return("font-style:italic;font-weight:bold;");
            }
            return(string.Empty);
        }