OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "core/fpdfapi/fpdf_font/cpdf_truetypefont.h" | 7 #include "core/fpdfapi/font/cpdf_truetypefont.h" |
8 | 8 |
9 #include "core/fpdfapi/fpdf_font/font_int.h" | 9 #include "core/fpdfapi/font/font_int.h" |
10 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" | 10 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" |
11 #include "core/fxge/fx_font.h" | 11 #include "core/fxge/fx_font.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 const uint8_t kPrefix[4] = {0x00, 0xf0, 0xf1, 0xf2}; | 15 const uint8_t kPrefix[4] = {0x00, 0xf0, 0xf1, 0xf2}; |
16 | 16 |
17 } // namespace | 17 } // namespace |
18 | 18 |
19 CPDF_TrueTypeFont::CPDF_TrueTypeFont() {} | 19 CPDF_TrueTypeFont::CPDF_TrueTypeFont() {} |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 m_Font.GetFace(), m_Encoding.m_Unicodes[charcode]); | 214 m_Font.GetFace(), m_Encoding.m_Unicodes[charcode]); |
215 if (m_GlyphIndex[charcode]) | 215 if (m_GlyphIndex[charcode]) |
216 bFound = true; | 216 bFound = true; |
217 } | 217 } |
218 if (bFound) | 218 if (bFound) |
219 return; | 219 return; |
220 } | 220 } |
221 for (int charcode = 0; charcode < 256; charcode++) | 221 for (int charcode = 0; charcode < 256; charcode++) |
222 m_GlyphIndex[charcode] = charcode; | 222 m_GlyphIndex[charcode] = charcode; |
223 } | 223 } |
OLD | NEW |