コード例 #1
0
ファイル: Fonts.cs プロジェクト: m1090c/CSharpMath
 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));
 }
コード例 #2
0
ファイル: Fonts.cs プロジェクト: FoggyFinder/CSharpMath
 public Fonts(IList <Typeface> localTypefaces, float pointSize)
 {
     PointSize    = pointSize;
     Typefaces    = localTypefaces.Concat(GlobalTypefaces);
     MathTypeface = Typefaces.First(t => t.HasMathTable());
 }