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/include/fxge/fx_ge.h" | 7 #include "core/include/fxge/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 | 10 |
11 #include <windows.h> | 11 #include <windows.h> |
12 | 12 |
13 #include "../dib/dib_int.h" | |
14 #include "../ge/text_int.h" | |
15 #include "core/include/fxge/fx_freetype.h" | 13 #include "core/include/fxge/fx_freetype.h" |
16 #include "core/include/fxge/fx_ge_win32.h" | 14 #include "core/include/fxge/fx_ge_win32.h" |
| 15 #include "core/src/fxge/dib/dib_int.h" |
| 16 #include "core/src/fxge/ge/text_int.h" |
17 #include "win32_int.h" | 17 #include "win32_int.h" |
18 | 18 |
19 #define SIZETHRESHOLD 1000 | 19 #define SIZETHRESHOLD 1000 |
20 #define OUTPUTPSLEN 4096 | 20 #define OUTPUTPSLEN 4096 |
21 CGdiPrinterDriver::CGdiPrinterDriver(HDC hDC) | 21 CGdiPrinterDriver::CGdiPrinterDriver(HDC hDC) |
22 : CGdiDeviceDriver(hDC, FXDC_PRINTER) { | 22 : CGdiDeviceDriver(hDC, FXDC_PRINTER) { |
23 m_HorzSize = ::GetDeviceCaps(m_hDC, HORZSIZE); | 23 m_HorzSize = ::GetDeviceCaps(m_hDC, HORZSIZE); |
24 m_VertSize = ::GetDeviceCaps(m_hDC, VERTSIZE); | 24 m_VertSize = ::GetDeviceCaps(m_hDC, VERTSIZE); |
25 m_bSupportROP = TRUE; | 25 m_bSupportROP = TRUE; |
26 } | 26 } |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 CFX_FontCache* pCache, | 468 CFX_FontCache* pCache, |
469 const CFX_AffineMatrix* pObject2Device, | 469 const CFX_AffineMatrix* pObject2Device, |
470 FX_FLOAT font_size, | 470 FX_FLOAT font_size, |
471 FX_DWORD color, | 471 FX_DWORD color, |
472 int alpha_flag, | 472 int alpha_flag, |
473 void* pIccTransform) { | 473 void* pIccTransform) { |
474 return m_PSRenderer.DrawText(nChars, pCharPos, pFont, pCache, pObject2Device, | 474 return m_PSRenderer.DrawText(nChars, pCharPos, pFont, pCache, pObject2Device, |
475 font_size, color, alpha_flag, pIccTransform); | 475 font_size, color, alpha_flag, pIccTransform); |
476 } | 476 } |
477 #endif | 477 #endif |
OLD | NEW |