forked from verybadcat/CSharpMath
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTypesettingContext.cs
More file actions
22 lines (21 loc) · 908 Bytes
/
TypesettingContext.cs
File metadata and controls
22 lines (21 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
namespace CSharpMath.Display.FrontEnd {
/// <summary>
/// A wrapper class holding everything the core needs to have in order to layout the LaTeX.
/// </summary>
public class TypesettingContext<TFont, TGlyph> where TFont : IFont<TGlyph> {
public IGlyphBoundsProvider<TFont, TGlyph> GlyphBoundsProvider { get; }
public IGlyphFinder<TFont, TGlyph> GlyphFinder { get; }
public FontMathTable<TFont, TGlyph> MathTable { get; }
public Func<TFont, float, TFont> MathFontCloner { get; }
public TypesettingContext(Func<TFont, float, TFont> mathFontCloner,
IGlyphBoundsProvider<TFont, TGlyph> glyphBoundsProvider,
IGlyphFinder<TFont, TGlyph> glyphFinder,
FontMathTable<TFont, TGlyph> mathTable) {
GlyphBoundsProvider = glyphBoundsProvider;
MathFontCloner = mathFontCloner;
GlyphFinder = glyphFinder;
MathTable = mathTable;
}
}
}