diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-07-21 16:54:32 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-07-21 16:54:32 -0700 |
commit | 587fd358c90319316ba86d4840901a02005f3b83 (patch) | |
tree | b98a3909d3908b742ea7a2b030b859c04d16fe1b /core/include/fpdfapi | |
parent | dcbc02f15e767e7d427fe6346d415c48da53afe0 (diff) | |
download | pdfium-587fd358c90319316ba86d4840901a02005f3b83.tar.xz |
Merge to XFA: Move extern fpdf_font_charset.cpp function prototypes.
(cherry picked from commit c5fa7f2a36ebd4c92c935e1332a2f7db4f3594d9)
Orignal Review URL: https://codereview.chromium.org/1241173004 .
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1243243003 .
Diffstat (limited to 'core/include/fpdfapi')
-rw-r--r-- | core/include/fpdfapi/fpdf_resource.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/core/include/fpdfapi/fpdf_resource.h b/core/include/fpdfapi/fpdf_resource.h index a73b2cd1a2..5c8cc85217 100644 --- a/core/include/fpdfapi/fpdf_resource.h +++ b/core/include/fpdfapi/fpdf_resource.h @@ -38,6 +38,19 @@ class CPDF_Type1Font; class CPDF_Type3Font; typedef struct FT_FaceRec_* FXFT_Face; +FX_WCHAR PDF_UnicodeFromAdobeName(const FX_CHAR* name); +CFX_ByteString PDF_AdobeNameFromUnicode(FX_WCHAR unicode); +const FX_CHAR* FCS_GetAltStr(FX_WCHAR unicode); +const FX_CHAR* PDF_CharNameFromPredefinedCharSet(int encoding, + uint8_t charcode); + +FX_WCHAR FT_UnicodeFromCharCode(int encoding, FX_DWORD charcode); +FX_DWORD FT_CharCodeFromUnicode(int encoding, FX_WCHAR unicode); +const FX_WORD* PDF_UnicodesForPredefinedCharSet(int encoding); +const FX_CHAR* GetAdobeCharName(int iBaseEncoding, + const CFX_ByteString* pCharNames, + int charcode); + template <class T> class CPDF_CountedObject { public: @@ -61,7 +74,6 @@ protected: }; using CPDF_CountedColorSpace = CPDF_CountedObject<CPDF_ColorSpace>; using CPDF_CountedPattern = CPDF_CountedObject<CPDF_Pattern>; - #define PDFFONT_TYPE1 1 #define PDFFONT_TRUETYPE 2 #define PDFFONT_TYPE3 3 @@ -76,8 +88,6 @@ using CPDF_CountedPattern = CPDF_CountedObject<CPDF_Pattern>; #define PDFFONT_SMALLCAP 0x20000 #define PDFFONT_FORCEBOLD 0x40000 #define PDFFONT_USEEXTERNATTR 0x80000 -FX_WCHAR PDF_UnicodeFromAdobeName(const FX_CHAR* name); -CFX_ByteString PDF_AdobeNameFromUnicode(FX_WCHAR unicode); class CPDF_Font { public: |