Exemple #1
0
 public Fonts(IEnumerable <Typeface> localTypefaces, float pointSize)
 {
     PointSize    = pointSize;
     Typefaces    = localTypefaces.Concat(GlobalTypefaces);
     MathTypeface = Typefaces.First(t => t.HasMathTable());
     MathConsts   = MathTypeface.MathConsts ?? throw new Structures.InvalidCodePathException(nameof(MathTypeface) + " doesn't have " + nameof(MathConsts));
 }
Exemple #2
0
 public Fonts(IList <Typeface> localTypefaces, float pointSize)
 {
     PointSize    = pointSize;
     Typefaces    = localTypefaces.Concat(GlobalTypefaces);
     MathTypeface = Typefaces.First(t => t.HasMathTable());
 }