Debian Codegraph @

texk/lcdf-typetools/lcdf-typetools-src/include/efont/t1unparser.hh

raw
1 // -*- related-file-name: "../../libefont/t1unparser.cc" -*-
2 #ifndef EFONT_T1UNPARSER_HH
3 #define EFONT_T1UNPARSER_HH
4 #include <efont/t1interp.hh>
5 #include <lcdf/straccum.hh>
6 namespace Efont {
7
8 class CharstringUnparser : public CharstringInterp { public:
9
10 CharstringUnparser();
11 CharstringUnparser(const CharstringUnparser &);
12
13 const String &indent() const { return _indent; }
14 void set_indent(const String &s) { _indent = s; }
15 void set_one_command_per_line(bool b) { _one_command_per_line = b; }
16
17 void clear();
18
19 bool number(double);
20 bool type1_command(int);
21 bool type2_command(int, const unsigned char *, int *);
22 void act_hintmask(int, const unsigned char *, int);
23
24 String value();
25
26 static String unparse(const Charstring *);
27 static String unparse(const Charstring &);
28
29 private:
30
31 String _indent;
32 bool _one_command_per_line;
33 bool _start_of_line;
34 StringAccum _sa;
35
36 };
37
38 }
39 #endif