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

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 15 years ago

First import

File size: 1.2 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  // Write a version of the Type 1 font file with a new encoding.
42  void writeEncoded(char **newEncoding,
43                    FoFiOutputFunc outputFunc, void *outputStream);
44
45private:
46
47  FoFiType1(char *fileA, int lenA, GBool freeFileDataA);
48
49  char *getNextLine(char *line);
50  void parse();
51
52  char *name;
53  char **encoding;
54  GBool parsed;
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.