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 "core/fxge/include/fx_ge.h" | 7 #include "core/fxge/include/fx_ge.h" |
8 | 8 |
9 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ | 9 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_DESKTOP_ |
10 #include <crtdbg.h> | 10 #include <crtdbg.h> |
11 | 11 |
| 12 #include "core/fxcodec/include/fx_codec.h" |
12 #include "core/fxge/agg/fx_agg_driver.h" | 13 #include "core/fxge/agg/fx_agg_driver.h" |
13 #include "core/fxge/dib/dib_int.h" | 14 #include "core/fxge/dib/dib_int.h" |
14 #include "core/fxge/ge/fx_text_int.h" | 15 #include "core/fxge/ge/fx_text_int.h" |
15 #include "core/fxge/include/fx_freetype.h" | 16 #include "core/fxge/include/fx_freetype.h" |
16 #include "core/fxge/include/fx_ge_win32.h" | 17 #include "core/fxge/include/fx_ge_win32.h" |
17 #include "core/fxge/win32/dwrite_int.h" | 18 #include "core/fxge/win32/dwrite_int.h" |
18 #include "core/fxge/win32/win32_int.h" | 19 #include "core/fxge/win32/win32_int.h" |
19 #include "core/include/fxcodec/fx_codec.h" | |
20 #include "third_party/base/stl_util.h" | 20 #include "third_party/base/stl_util.h" |
21 | 21 |
22 class CFX_Win32FallbackFontInfo final : public CFX_FolderFontInfo { | 22 class CFX_Win32FallbackFontInfo final : public CFX_FolderFontInfo { |
23 public: | 23 public: |
24 void* MapFont(int weight, | 24 void* MapFont(int weight, |
25 FX_BOOL bItalic, | 25 FX_BOOL bItalic, |
26 int charset, | 26 int charset, |
27 int pitch_family, | 27 int pitch_family, |
28 const FX_CHAR* family, | 28 const FX_CHAR* family, |
29 int& iExact) override; | 29 int& iExact) override; |
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1363 SelectObject(m_hDC, m_hOldBitmap); | 1363 SelectObject(m_hDC, m_hOldBitmap); |
1364 DeleteDC(m_hDC); | 1364 DeleteDC(m_hDC); |
1365 } | 1365 } |
1366 if (m_hBitmap) { | 1366 if (m_hBitmap) { |
1367 DeleteObject(m_hBitmap); | 1367 DeleteObject(m_hBitmap); |
1368 } | 1368 } |
1369 delete GetBitmap(); | 1369 delete GetBitmap(); |
1370 } | 1370 } |
1371 | 1371 |
1372 #endif // _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_ | 1372 #endif // _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_ |
OLD | NEW |