| 1 |
#ifndef MYFONT_HH |
| 2 |
#define MYFONT_HH |
| 3 |
#include <efont/t1font.hh> |
| 4 |
namespace Efont { class MultipleMasterSpace; } |
| 5 |
class ErrorHandler; |
| 6 |
|
| 7 |
class MyFont : public Efont::Type1Font { public: |
| 8 |
|
| 9 |
MyFont(Efont::Type1Reader &); |
| 10 |
~MyFont(); |
| 11 |
|
| 12 |
bool set_design_vector(Efont::MultipleMasterSpace *, const Vector<double> &, ErrorHandler * = 0); |
| 13 |
|
| 14 |
void interpolate_dicts(bool force_integers, ErrorHandler *); |
| 15 |
void interpolate_charstrings(int precision, ErrorHandler * = 0); |
| 16 |
|
| 17 |
private: |
| 18 |
|
| 19 |
typedef Vector<double> NumVector; |
| 20 |
|
| 21 |
int _nmasters; |
| 22 |
Vector<double> _weight_vector; |
| 23 |
|
| 24 |
void interpolate_dict_int(PermString, Dict, ErrorHandler *); |
| 25 |
void interpolate_dict_num(PermString, Dict, bool round_integer = false); |
| 26 |
void interpolate_dict_numvec(PermString, Dict, int round_mode = 0, bool executable = false); |
| 27 |
void kill_def(Efont::Type1Definition *, int which_dict = -1); |
| 28 |
|
| 29 |
}; |
| 30 |
|
| 31 |
#endif |