| 1 |
// -*- related-file-name: "../../libefont/ttfcs.cc" -*- |
| 2 |
#ifndef EFONT_TTFCS_HH |
| 3 |
#define EFONT_TTFCS_HH |
| 4 |
#include <efont/t1cs.hh> |
| 5 |
#include <efont/otf.hh> |
| 6 |
#include <efont/otfdata.hh> |
| 7 |
namespace Efont { |
| 8 |
|
| 9 |
class TrueTypeBoundsCharstringProgram : public CharstringProgram { public: |
| 10 |
|
| 11 |
TrueTypeBoundsCharstringProgram(const OpenType::Font *); |
| 12 |
~TrueTypeBoundsCharstringProgram(); |
| 13 |
|
| 14 |
void font_matrix(double[6]) const; |
| 15 |
|
| 16 |
int nglyphs() const; |
| 17 |
Charstring *glyph(int gi) const; |
| 18 |
PermString glyph_name(int gi) const; |
| 19 |
void glyph_names(Vector<PermString> &) const; |
| 20 |
|
| 21 |
private: |
| 22 |
|
| 23 |
const OpenType::Font *_otf; |
| 24 |
int _nglyphs; |
| 25 |
int _nhmtx; |
| 26 |
bool _loca_long; |
| 27 |
OpenType::Data _loca; |
| 28 |
OpenType::Data _glyf; |
| 29 |
OpenType::Data _hmtx; |
| 30 |
mutable Vector<Charstring*> _charstrings; |
| 31 |
mutable Vector<PermString> _glyph_names; |
| 32 |
mutable bool _got_glyph_names; |
| 33 |
mutable Vector<uint32_t> _unicodes; |
| 34 |
mutable bool _got_unicodes; |
| 35 |
|
| 36 |
}; |
| 37 |
|
| 38 |
} |
| 39 |
#endif |
| 40 |
|