Exemplo n.º 1
0
        public static WpfTextBuilder Create(FontFamily fontFamily, FontStyle fontStyle, FontWeight fontWeight,
                                            CultureInfo culture, double fontSize)
        {
            WpfGlyphTextBuilder textBuilder = new WpfGlyphTextBuilder(fontFamily, fontStyle, fontWeight,
                                                                      culture, fontSize);

            return(textBuilder);
        }
Exemplo n.º 2
0
        public static WpfTextBuilder Create(string familyInfo, CultureInfo culture, double fontSize)
        {
            if (string.IsNullOrWhiteSpace(familyInfo))
            {
                return(new WpfGlyphTextBuilder(culture, fontSize));
            }

            WpfGlyphTextBuilder textBuilder = new WpfGlyphTextBuilder(culture, familyInfo, fontSize);

            return(textBuilder);
        }