~naesten/tex-live/trunk

« back to all changes in this revision

Viewing changes to libs/poppler/poppler-src/poppler/GfxFont.h

  • Committer: karl
  • Date: 2018-01-09 18:53:05 UTC
  • Revision ID: svn-v4:c570f23f-e606-0410-a88d-b1316a301751:trunk/Build/source:46257
poppler 0.62.0, requiring C++11; luatex not updated yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
// All changes made under the Poppler project to this file are licensed
14
14
// under GPL version 2 or later
15
15
//
16
 
// Copyright (C) 2005, 2008, 2015 Albert Astals Cid <aacid@kde.org>
 
16
// Copyright (C) 2005, 2008, 2015, 2017 Albert Astals Cid <aacid@kde.org>
17
17
// Copyright (C) 2006 Takashi Iwai <tiwai@suse.de>
18
18
// Copyright (C) 2006 Kristian Høgsberg <krh@redhat.com>
19
19
// Copyright (C) 2007 Julien Rebetez <julienr@svn.gnome.org>
322
322
  Gfx8BitFont(XRef *xref, const char *tagA, Ref idA, GooString *nameA,
323
323
              GfxFontType typeA, Ref embFontIDA, Dict *fontDict);
324
324
 
325
 
  virtual int getNextChar(char *s, int len, CharCode *code,
 
325
  int getNextChar(char *s, int len, CharCode *code,
326
326
                          Unicode **u, int *uLen,
327
 
                          double *dx, double *dy, double *ox, double *oy);
 
327
                          double *dx, double *dy, double *ox, double *oy) override;
328
328
 
329
329
  // Return the encoding.
330
330
  char **getEncoding() { return enc; }
331
331
 
332
332
  // Return the Unicode map.
333
 
  CharCodeToUnicode *getToUnicode();
 
333
  CharCodeToUnicode *getToUnicode() override;
334
334
 
335
335
  // Return the character name associated with <code>.
336
336
  char *getCharName(int code) { return enc[code]; }
352
352
  Dict *getCharProcs();
353
353
 
354
354
  // Return the Type 3 CharProc for the character associated with <code>.
355
 
  Object *getCharProc(int code, Object *proc);
 
355
  Object getCharProc(int code);
 
356
  Object getCharProcNF(int code);
356
357
 
357
358
  // Return the Type 3 Resources dictionary, or NULL if none.
358
359
  Dict *getResources();
359
360
 
360
361
private:
361
 
  virtual ~Gfx8BitFont();
 
362
  ~Gfx8BitFont();
362
363
 
363
364
  const Base14FontMapEntry *base14;     // for Base-14 fonts only; NULL otherwise
364
365
  char *enc[256];               // char code --> char name
384
385
  GfxCIDFont(XRef *xref, const char *tagA, Ref idA, GooString *nameA,
385
386
             GfxFontType typeA, Ref embFontIDA, Dict *fontDict);
386
387
 
387
 
  virtual GBool isCIDFont() { return gTrue; }
 
388
  GBool isCIDFont() override { return gTrue; }
388
389
 
389
 
  virtual int getNextChar(char *s, int len, CharCode *code,
 
390
  int getNextChar(char *s, int len, CharCode *code,
390
391
                          Unicode **u, int *uLen,
391
 
                          double *dx, double *dy, double *ox, double *oy);
 
392
                          double *dx, double *dy, double *ox, double *oy) override;
392
393
 
393
394
  // Return the writing mode (0=horizontal, 1=vertical).
394
 
  virtual int getWMode();
 
395
  int getWMode() override;
395
396
 
396
397
  // Return the Unicode map.
397
 
  CharCodeToUnicode *getToUnicode();
 
398
  CharCodeToUnicode *getToUnicode() override;
398
399
 
399
400
  // Get the collection name (<registry>-<ordering>).
400
401
  GooString *getCollection();
409
410
  double getWidth(char* s, int len);
410
411
 
411
412
private:
412
 
  virtual ~GfxCIDFont();
 
413
  ~GfxCIDFont();
413
414
 
414
415
  int mapCodeToGID(FoFiTrueType *ff, int cmapi,
415
416
    Unicode unicode, GBool wmode);