Exemplo n.º 1
0
 public static Hyphenator FromCulture(string culture)
 {
     if (hyphenators.TryGetValue(culture, out Hyphenator? hyph))
     {
         return(hyph);
     }
     else
     {
         hyph = new Hyphenator(culture);
         hyphenators[culture] = hyph;
         return(hyph);
     }
 }
Exemplo n.º 2
0
        public Document()
        {
            Locale       = new Locale(Culture);
            Elements     = new ElementCollection <DocumentElement>(this);
            PageItems    = new ElementCollection <DocumentElement>(this);
            Measurements = new Measurements();

            Font     = Text.Font.Serif;
            FontSize = 11;

            Hyphenator = new Text.Hyphenator("en-us");

            DocumentVariables.Setup(Variables);
        }