| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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 <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "../../../include/fxge/fx_ge.h" | |
| 10 #include "../../../include/fxge/fx_freetype.h" | |
| 11 #include "../fontdata/chromefontdata/chromefontdata.h" | 9 #include "../fontdata/chromefontdata/chromefontdata.h" |
| 10 #include "core/include/fxge/fx_freetype.h" |
| 11 #include "core/include/fxge/fx_ge.h" |
| 12 #include "text_int.h" | 12 #include "text_int.h" |
| 13 | 13 |
| 14 #define GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1]) | 14 #define GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1]) |
| 15 #define GET_TT_LONG(w) \ | 15 #define GET_TT_LONG(w) \ |
| 16 (FX_DWORD)(((w)[0] << 24) | ((w)[1] << 16) | ((w)[2] << 8) | (w)[3]) | 16 (FX_DWORD)(((w)[0] << 24) | ((w)[1] << 16) | ((w)[2] << 8) | (w)[3]) |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 struct BuiltinFont { | 20 struct BuiltinFont { |
| 21 const uint8_t* m_pFontData; | 21 const uint8_t* m_pFontData; |
| (...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 int PDF_GetStandardFontName(CFX_ByteString* name) { | 1527 int PDF_GetStandardFontName(CFX_ByteString* name) { |
| 1528 AltFontName* found = static_cast<AltFontName*>( | 1528 AltFontName* found = static_cast<AltFontName*>( |
| 1529 FXSYS_bsearch(name->c_str(), g_AltFontNames, FX_ArraySize(g_AltFontNames), | 1529 FXSYS_bsearch(name->c_str(), g_AltFontNames, FX_ArraySize(g_AltFontNames), |
| 1530 sizeof(AltFontName), compareString)); | 1530 sizeof(AltFontName), compareString)); |
| 1531 if (!found) | 1531 if (!found) |
| 1532 return -1; | 1532 return -1; |
| 1533 | 1533 |
| 1534 *name = g_Base14FontNames[found->m_Index]; | 1534 *name = g_Base14FontNames[found->m_Index]; |
| 1535 return found->m_Index; | 1535 return found->m_Index; |
| 1536 } | 1536 } |
| OLD | NEW |