File: t1unparser.hh

package info (click to toggle)
lcdf-typetools 2.92%2Bdfsg1-0.1
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 2,884 kB
  • sloc: cpp: 34,407; ansic: 2,106; sh: 1,032; makefile: 306
file content (39 lines) | stat: -rw-r--r-- 946 bytes parent folder | download | duplicates (8)
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
35
36
37
38
39
// -*- related-file-name: "../../libefont/t1unparser.cc" -*-
#ifndef EFONT_T1UNPARSER_HH
#define EFONT_T1UNPARSER_HH
#include <efont/t1interp.hh>
#include <lcdf/straccum.hh>
namespace Efont {

class CharstringUnparser : public CharstringInterp { public:

    CharstringUnparser();
    CharstringUnparser(const CharstringUnparser &);

    const String &indent() const		{ return _indent; }
    void set_indent(const String &s)		{ _indent = s; }
    void set_one_command_per_line(bool b)	{ _one_command_per_line = b; }

    void clear();

    bool number(double);
    bool type1_command(int);
    bool type2_command(int, const unsigned char *, int *);
    void act_hintmask(int, const unsigned char *, int);

    String value();

    static String unparse(const Charstring *);
    static String unparse(const Charstring &);

  private:

    String _indent;
    bool _one_command_per_line;
    bool _start_of_line;
    StringAccum _sa;

};

}
#endif