~wpf-math-dev/wpf-math/devel

« back to all changes in this revision

Viewing changes to WpfMath/ITeXFont.cs

  • Committer: Alex Regueiro
  • Date: 2010-06-05 23:00:18 UTC
  • Revision ID: alexreg@gmail.com-20100605230018-wk0jl38tjcla09yh
Put all classes in library in WpfMath namespace.
Added RenderToBitmap method on TexRenderer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
using System.Linq;
4
4
using System.Text;
5
5
 
6
 
// Font that specifies how TexFormula objects are rendered.
7
 
internal interface ITeXFont
 
6
namespace WpfMath
8
7
{
9
 
    double Size { get; }
10
 
 
11
 
    ITeXFont DeriveFont(double newSize);
12
 
 
13
 
    ExtensionChar GetExtension(CharInfo charInfo, TexStyle style);
14
 
 
15
 
    CharFont GetLigature(CharFont leftChar, CharFont rightChar);
16
 
 
17
 
    CharInfo GetNextLargerCharInfo(CharInfo charInfo, TexStyle style);
18
 
 
19
 
    CharInfo GetDefaultCharInfo(char character, TexStyle style);
20
 
 
21
 
    CharInfo GetCharInfo(char character, string textStyle, TexStyle style);
22
 
 
23
 
    CharInfo GetCharInfo(CharFont charFont, TexStyle style);
24
 
 
25
 
    CharInfo GetCharInfo(string name, TexStyle style);
26
 
 
27
 
    double GetKern(CharFont leftChar, CharFont rightChar, TexStyle style);
28
 
 
29
 
    double GetQuad(int fontId, TexStyle style);
30
 
 
31
 
    double GetSkew(CharFont charFont, TexStyle style);
32
 
 
33
 
    bool HasSpace(int fontId);
34
 
 
35
 
    bool HasNextLarger(CharInfo charInfo);
36
 
 
37
 
    bool IsExtensionChar(CharInfo charInfo);
38
 
 
39
 
    int GetMuFontId();
40
 
 
41
 
    double GetXHeight(TexStyle style, int fontId);
42
 
 
43
 
    double GetSpace(TexStyle style);
44
 
 
45
 
    double GetAxisHeight(TexStyle style);
46
 
 
47
 
    double GetBigOpSpacing1(TexStyle style);
48
 
 
49
 
    double GetBigOpSpacing2(TexStyle style);
50
 
 
51
 
    double GetBigOpSpacing3(TexStyle style);
52
 
 
53
 
    double GetBigOpSpacing4(TexStyle style);
54
 
 
55
 
    double GetBigOpSpacing5(TexStyle style);
56
 
 
57
 
    double GetSub1(TexStyle style);
58
 
 
59
 
    double GetSub2(TexStyle style);
60
 
 
61
 
    double GetSubDrop(TexStyle style);
62
 
 
63
 
    double GetSup1(TexStyle style);
64
 
 
65
 
    double GetSup2(TexStyle style);
66
 
 
67
 
    double GetSup3(TexStyle style);
68
 
 
69
 
    double GetSupDrop(TexStyle style);
70
 
 
71
 
    double GetNum1(TexStyle style);
72
 
 
73
 
    double GetNum2(TexStyle style);
74
 
 
75
 
    double GetNum3(TexStyle style);
76
 
 
77
 
    double GetDenom1(TexStyle style);
78
 
 
79
 
    double GetDenom2(TexStyle style);
80
 
 
81
 
    double GetDefaultLineThickness(TexStyle style);
 
8
    // Font that specifies how TexFormula objects are rendered.
 
9
    internal interface ITeXFont
 
10
    {
 
11
        double Size { get; }
 
12
 
 
13
        ITeXFont DeriveFont(double newSize);
 
14
 
 
15
        ExtensionChar GetExtension(WpfMath.CharInfo charInfo, TexStyle style);
 
16
 
 
17
        WpfMath.CharFont GetLigature(WpfMath.CharFont leftChar, WpfMath.CharFont rightChar);
 
18
 
 
19
        WpfMath.CharInfo GetNextLargerCharInfo(WpfMath.CharInfo charInfo, TexStyle style);
 
20
 
 
21
        WpfMath.CharInfo GetDefaultCharInfo(char character, TexStyle style);
 
22
 
 
23
        WpfMath.CharInfo GetCharInfo(char character, string textStyle, TexStyle style);
 
24
 
 
25
        WpfMath.CharInfo GetCharInfo(WpfMath.CharFont charFont, TexStyle style);
 
26
 
 
27
        WpfMath.CharInfo GetCharInfo(string name, TexStyle style);
 
28
 
 
29
        double GetKern(WpfMath.CharFont leftChar, WpfMath.CharFont rightChar, TexStyle style);
 
30
 
 
31
        double GetQuad(int fontId, TexStyle style);
 
32
 
 
33
        double GetSkew(WpfMath.CharFont charFont, TexStyle style);
 
34
 
 
35
        bool HasSpace(int fontId);
 
36
 
 
37
        bool HasNextLarger(WpfMath.CharInfo charInfo);
 
38
 
 
39
        bool IsExtensionChar(WpfMath.CharInfo charInfo);
 
40
 
 
41
        int GetMuFontId();
 
42
 
 
43
        double GetXHeight(TexStyle style, int fontId);
 
44
 
 
45
        double GetSpace(TexStyle style);
 
46
 
 
47
        double GetAxisHeight(TexStyle style);
 
48
 
 
49
        double GetBigOpSpacing1(TexStyle style);
 
50
 
 
51
        double GetBigOpSpacing2(TexStyle style);
 
52
 
 
53
        double GetBigOpSpacing3(TexStyle style);
 
54
 
 
55
        double GetBigOpSpacing4(TexStyle style);
 
56
 
 
57
        double GetBigOpSpacing5(TexStyle style);
 
58
 
 
59
        double GetSub1(TexStyle style);
 
60
 
 
61
        double GetSub2(TexStyle style);
 
62
 
 
63
        double GetSubDrop(TexStyle style);
 
64
 
 
65
        double GetSup1(TexStyle style);
 
66
 
 
67
        double GetSup2(TexStyle style);
 
68
 
 
69
        double GetSup3(TexStyle style);
 
70
 
 
71
        double GetSupDrop(TexStyle style);
 
72
 
 
73
        double GetNum1(TexStyle style);
 
74
 
 
75
        double GetNum2(TexStyle style);
 
76
 
 
77
        double GetNum3(TexStyle style);
 
78
 
 
79
        double GetDenom1(TexStyle style);
 
80
 
 
81
        double GetDenom2(TexStyle style);
 
82
 
 
83
        double GetDefaultLineThickness(TexStyle style);
 
84
    }
82
85
}