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_CFX_UNICODEENCODING_H_
8 #define CORE_FXGE_CFX_UNICODEENCODING_H_
9 
10 #include <stdint.h>
11 
12 #include "core/fxcrt/unowned_ptr.h"
13 
14 class CFX_Font;
15 
16 class CFX_UnicodeEncoding {
17  public:
18   explicit CFX_UnicodeEncoding(CFX_Font* pFont);
19   virtual ~CFX_UnicodeEncoding();
20 
21   virtual uint32_t GlyphFromCharCode(uint32_t charcode);
22 
23  protected:
24   UnownedPtr<CFX_Font> const m_pFont;
25 };
26 
27 #endif  // CORE_FXGE_CFX_UNICODEENCODING_H_
28