Ignore:
Timestamp:
Jun 30, 2008, 10:13:07 AM (13 years ago)
Author:
Eugene Romanenko
Message:

PDF plugin: poppler library updated to version 0.8.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/poppler/mypoppler/poppler/GfxFont.h

    r27 r250  
    2323class CharCodeToUnicode;
    2424class FoFiTrueType;
     25class DisplayFontParam;
    2526struct GfxFontCIDWidths;
    2627
     
    3435  fontType1,
    3536  fontType1C,
     37  fontType1COT,
    3638  fontType3,
    3739  fontTrueType,
     40  fontTrueTypeOT,
    3841  //----- GfxCIDFont
    3942  fontCIDType0,
    4043  fontCIDType0C,
    41   fontCIDType2
     44  fontCIDType0COT,
     45  fontCIDType2,
     46  fontCIDType2OT
    4247};
    4348
     
    162167
    163168  // Get font descriptor flags.
     169  int getFlags() { return flags; }
    164170  GBool isFixedWidth() { return flags & fontFixedWidth; }
    165171  GBool isSerif() { return flags & fontSerif; }
     
    167173  GBool isItalic() { return flags & fontItalic; }
    168174  GBool isBold() { return flags & fontBold; }
     175
     176  // Return the Unicode map.
     177  virtual CharCodeToUnicode *getToUnicode() = 0;
    169178
    170179  // Return the font matrix.
     
    192201  // the char code.
    193202  virtual int getNextChar(char *s, int len, CharCode *code,
    194                           Unicode *u, int uSize, int *uLen,
     203                          Unicode **u, int *uLen,
    195204                          double *dx, double *dy, double *ox, double *oy) = 0;
    196205
     206  /* XXX: dfp shouldn't be public, however the font finding code is currently in
     207   * GlobalParams. Instead it should be inside the GfxFont class. However,
     208   * getDisplayFont currently uses FCcfg so moving it is not as simple. */
     209  /* XXX: related to this is the fact that all of the extFontFile stuff is dead */
     210  DisplayFontParam *dfp;
    197211protected:
    198212
     
    236250
    237251  virtual int getNextChar(char *s, int len, CharCode *code,
    238                           Unicode *u, int uSize, int *uLen,
     252                          Unicode **u, int *uLen,
    239253                          double *dx, double *dy, double *ox, double *oy);
    240254
     
    298312
    299313  virtual int getNextChar(char *s, int len, CharCode *code,
    300                           Unicode *u, int uSize, int *uLen,
     314                          Unicode **u, int *uLen,
    301315                          double *dx, double *dy, double *ox, double *oy);
    302316
     
    317331  Gushort *getCodeToGIDMap(FoFiTrueType *ff, int *length);
    318332
     333  double getWidth(char* s, int len);
     334
    319335private:
     336  Gushort mapCodeToGID(FoFiTrueType *ff, int cmapi,
     337    Unicode unicode, GBool wmode);
    320338
    321339  CMap *cMap;                   // char code --> CID
Note: See TracChangeset for help on using the changeset viewer.