File: ttfcs.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 (41 lines) | stat: -rw-r--r-- 975 bytes parent folder | download | duplicates (6)
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
40
41
// -*- related-file-name: "../../libefont/ttfcs.cc" -*-
#ifndef EFONT_TTFCS_HH
#define EFONT_TTFCS_HH
#include <efont/t1cs.hh>
#include <efont/otf.hh>
#include <efont/otfdata.hh>
namespace Efont {

class TrueTypeBoundsCharstringProgram : public CharstringProgram { public:

    TrueTypeBoundsCharstringProgram(const OpenType::Font *);
    ~TrueTypeBoundsCharstringProgram();

    int units_per_em() const;

    int nglyphs() const;
    Charstring *glyph(int gi) const;
    PermString glyph_name(int gi) const;
    void glyph_names(Vector<PermString> &) const;

  private:

    const OpenType::Font *_otf;
    int _nglyphs;
    int _nhmtx;
    bool _loca_long;
    int _units_per_em;
    OpenType::Data _loca;
    OpenType::Data _glyf;
    OpenType::Data _hmtx;
    mutable Vector<Charstring *> _charstrings;
    mutable Vector<PermString> _glyph_names;
    mutable bool _got_glyph_names;
    mutable Vector<uint32_t> _unicodes;
    mutable bool _got_unicodes;

};

}
#endif