Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
| 6 | |
| 7 #ifndef CORE_FXGE_INCLUDE_CFX_UNICODEENCODINGEX_H_ | |
| 8 #define CORE_FXGE_INCLUDE_CFX_UNICODEENCODINGEX_H_ | |
| 9 | |
| 10 #include <map> | |
| 11 #include <memory> | |
| 12 #include <vector> | |
| 13 | |
| 14 #include "core/fxcrt/include/fx_system.h" | |
| 15 #include "core/fxge/include/cfx_unicodeencoding.h" | |
| 16 #include "core/fxge/include/fx_dib.h" | |
| 17 #include "core/fxge/include/fx_freetype.h" | |
| 18 | |
| 19 #ifdef PDF_ENABLE_XFA | |
|
dsinclair
2016/08/18 15:14:52
Do in build, remove ifdef.
npm
2016/08/18 17:36:41
Done.
| |
| 20 class CFX_UnicodeEncodingEx : public CFX_UnicodeEncoding { | |
| 21 public: | |
| 22 CFX_UnicodeEncodingEx(CFX_Font* pFont, uint32_t EncodingID); | |
| 23 ~CFX_UnicodeEncodingEx() override; | |
| 24 | |
| 25 // CFX_UnicodeEncoding: | |
| 26 uint32_t GlyphFromCharCode(uint32_t charcode) override; | |
| 27 | |
| 28 uint32_t CharCodeFromUnicode(FX_WCHAR Unicode) const; | |
| 29 | |
| 30 private: | |
| 31 uint32_t m_nEncodingID; | |
| 32 }; | |
| 33 | |
| 34 CFX_UnicodeEncodingEx* FX_CreateFontEncodingEx( | |
| 35 CFX_Font* pFont, | |
| 36 uint32_t nEncodingID = FXFM_ENCODING_NONE); | |
| 37 #endif // PDF_ENABLE_XFA | |
| 38 | |
| 39 #endif // CORE_FXGE_INCLUDE_CFX_UNICODEENCODINGEX_H_ | |
| OLD | NEW |