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)); }
public Fonts(IList <Typeface> localTypefaces, float pointSize) { PointSize = pointSize; Typefaces = localTypefaces.Concat(GlobalTypefaces); MathTypeface = Typefaces.First(t => t.HasMathTable()); }