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 "../../../include/fxge/fx_ge.h" | 7 #include "../../../include/fxge/fx_ge.h" |
8 #include "../../../include/fxge/fx_freetype.h" | 8 #include "../../../include/fxge/fx_freetype.h" |
9 #include "text_int.h" | 9 #include "text_int.h" |
10 #define GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1]) | 10 #define GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1]) |
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1366 m_PitchFamily = 0; | 1366 m_PitchFamily = 0; |
1367 } | 1367 } |
1368 CFontFileFaceInfo::~CFontFileFaceInfo() | 1368 CFontFileFaceInfo::~CFontFileFaceInfo() |
1369 { | 1369 { |
1370 if (m_Face) { | 1370 if (m_Face) { |
1371 FXFT_Done_Face(m_Face); | 1371 FXFT_Done_Face(m_Face); |
1372 } | 1372 } |
1373 m_Face = NULL; | 1373 m_Face = NULL; |
1374 } | 1374 } |
1375 extern FX_BOOL _LoadFile(FXFT_Library library, FXFT_Face* Face, IFX_FileRead* pF
ile, FXFT_Stream* stream); | 1375 extern FX_BOOL _LoadFile(FXFT_Library library, FXFT_Face* Face, IFX_FileRead* pF
ile, FXFT_Stream* stream); |
1376 #if defined(_FPDFAPI_MINI_) || _FX_OS_ == _FX_ANDROID_ | 1376 #if _FX_OS_ == _FX_ANDROID_ |
1377 IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault() | 1377 IFX_SystemFontInfo* IFX_SystemFontInfo::CreateDefault() |
1378 { | 1378 { |
1379 return NULL; | 1379 return NULL; |
1380 } | 1380 } |
1381 #endif | 1381 #endif |
1382 #if !defined(_FPDFAPI_MINI_) | |
1383 CFX_FolderFontInfo::CFX_FolderFontInfo() | 1382 CFX_FolderFontInfo::CFX_FolderFontInfo() |
1384 { | 1383 { |
1385 } | 1384 } |
1386 CFX_FolderFontInfo::~CFX_FolderFontInfo() | 1385 CFX_FolderFontInfo::~CFX_FolderFontInfo() |
1387 { | 1386 { |
1388 FX_POSITION pos = m_FontList.GetStartPosition(); | 1387 FX_POSITION pos = m_FontList.GetStartPosition(); |
1389 while (pos) { | 1388 while (pos) { |
1390 CFX_ByteString key; | 1389 CFX_ByteString key; |
1391 FX_LPVOID value; | 1390 FX_LPVOID value; |
1392 m_FontList.GetNextAssoc(pos, key, value); | 1391 m_FontList.GetNextAssoc(pos, key, value); |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1609 return FALSE; | 1608 return FALSE; |
1610 } | 1609 } |
1611 CFontFaceInfo* pFont = (CFontFaceInfo*)hFont; | 1610 CFontFaceInfo* pFont = (CFontFaceInfo*)hFont; |
1612 name = pFont->m_FaceName; | 1611 name = pFont->m_FaceName; |
1613 return TRUE; | 1612 return TRUE; |
1614 } | 1613 } |
1615 FX_BOOL CFX_FolderFontInfo::GetFontCharset(void* hFont, int& charset) | 1614 FX_BOOL CFX_FolderFontInfo::GetFontCharset(void* hFont, int& charset) |
1616 { | 1615 { |
1617 return FALSE; | 1616 return FALSE; |
1618 } | 1617 } |
1619 #endif | |
OLD | NEW |