source: trunk/poppler/mypoppler/fofi/FoFiType1.h @ 515

Last change on this file since 515 was 515, checked in by Silvan Scherrer, 9 years ago

updated poppler to 0.20.3

File size: 1.4 KB
Line 
1//========================================================================
2//
3// FoFiType1.h
4//
5// Copyright 1999-2003 Glyph & Cog, LLC
6//
7//========================================================================
8
9#ifndef FOFITYPE1_H
10#define FOFITYPE1_H
11
12#ifdef USE_GCC_PRAGMAS
13#pragma interface
14#endif
15
16#include "goo/gtypes.h"
17#include "FoFiBase.h"
18
19//------------------------------------------------------------------------
20// FoFiType1
21//------------------------------------------------------------------------
22
23class FoFiType1: public FoFiBase {
24public:
25
26  // Create a FoFiType1 object from a memory buffer.
27  static FoFiType1 *make(char *fileA, int lenA);
28
29  // Create a FoFiType1 object from a file on disk.
30  static FoFiType1 *load(char *fileName);
31
32  virtual ~FoFiType1();
33
34  // Return the font name.
35  char *getName();
36
37  // Return the encoding, as an array of 256 names (any of which may
38  // be NULL).
39  char **getEncoding();
40
41  // Return the font matrix as an array of six numbers.
42  void getFontMatrix(double *mat);
43
44  // Write a version of the Type 1 font file with a new encoding.
45  void writeEncoded(const char **newEncoding,
46                    FoFiOutputFunc outputFunc, void *outputStream);
47
48private:
49
50  FoFiType1(char *fileA, int lenA, GBool freeFileDataA);
51
52  char *getNextLine(char *line);
53  void parse();
54  void undoPFB();
55
56  char *name;
57  char **encoding;
58  double fontMatrix[6];
59  GBool parsed;
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.