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 <string> | |
Tom Sepez
2016/03/08 19:27:05
ditto
dsinclair
2016/03/08 21:08:02
Done.
| |
14 | |
13 #include "core/include/fxge/fx_freetype.h" | 15 #include "core/include/fxge/fx_freetype.h" |
14 #include "core/include/fxge/fx_ge_win32.h" | 16 #include "core/include/fxge/fx_ge_win32.h" |
15 #include "core/src/fxge/dib/dib_int.h" | 17 #include "core/src/fxge/dib/dib_int.h" |
16 #include "core/src/fxge/ge/fx_text_int.h" | 18 #include "core/src/fxge/ge/fx_text_int.h" |
17 #include "core/src/fxge/win32/win32_int.h" | 19 #include "core/src/fxge/win32/win32_int.h" |
18 | 20 |
19 #define SIZETHRESHOLD 1000 | 21 #define SIZETHRESHOLD 1000 |
20 #define OUTPUTPSLEN 4096 | 22 #define OUTPUTPSLEN 4096 |
21 CGdiPrinterDriver::CGdiPrinterDriver(HDC hDC) | 23 CGdiPrinterDriver::CGdiPrinterDriver(HDC hDC) |
22 : CGdiDeviceDriver(hDC, FXDC_PRINTER) { | 24 : CGdiDeviceDriver(hDC, FXDC_PRINTER) { |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
464 CFX_FontCache* pCache, | 466 CFX_FontCache* pCache, |
465 const CFX_Matrix* pObject2Device, | 467 const CFX_Matrix* pObject2Device, |
466 FX_FLOAT font_size, | 468 FX_FLOAT font_size, |
467 FX_DWORD color, | 469 FX_DWORD color, |
468 int alpha_flag, | 470 int alpha_flag, |
469 void* pIccTransform) { | 471 void* pIccTransform) { |
470 return m_PSRenderer.DrawText(nChars, pCharPos, pFont, pCache, pObject2Device, | 472 return m_PSRenderer.DrawText(nChars, pCharPos, pFont, pCache, pObject2Device, |
471 font_size, color, alpha_flag, pIccTransform); | 473 font_size, color, alpha_flag, pIccTransform); |
472 } | 474 } |
473 #endif | 475 #endif |
OLD | NEW |