summaryrefslogtreecommitdiff
path: root/tex.hh
blob: fd4a0b6ddfa5d84b3e71204eeabd4314fdc92f1e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef TEX_HH
#define TEX_HH

#include "string.hh"
#include "boxes.hh"

/// anything which can be output
struct Output {
    virtual String TeXstring() const=0;
    /** generate a TeX string, which typesets the symbol. Vertical
     base position is the "origin" of the staff
    */
    virtual Box extent() const=0;
};
/**
  any output should (at least) be outputtable for TeX, and have a
  dimension
*/


/// an idea
struct Text_gob : Output {
    String text;
    // fonts, sizes, etc?
    virtual String TeXstring() const;
    virtual Box extent() const;
};


/// #h# is in points
String vstrut(Real h);


#endif