~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/poppler/fofi/FoFiType1.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
23
class FoFiType1: public FoFiBase {
 
24
public:
 
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
 
 
45
private:
 
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