File: afmw.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 (29 lines) | stat: -rw-r--r-- 484 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
#ifndef EFONT_AFMW_HH
#define EFONT_AFMW_HH
#include <efont/afm.hh>
#include <stdio.h>
namespace Efont {

class AfmWriter { public:

    static void write(Metrics *, FILE *);

  private:

    Metrics *_m;
    AfmMetricsXt *_afm_xt;
    FILE *_f;

    void write_prologue() const;
    void write_char_metric_data(GlyphIndex, int) const;
    void write_kerns() const;
    void write();

    double fd(int i) const		{ return _m->fd(i); }

    AfmWriter(Metrics *, FILE *);

};

}
#endif