summaryrefslogtreecommitdiff
path: root/core/fxge/include
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-07-18 13:45:44 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-18 13:45:44 -0700
commitfdb35ffb8d4bd283dd8f5905936f5c400fea3394 (patch)
tree715c7842a6a3b654ec95c11cd05ecf9a8d7900a4 /core/fxge/include
parent34965459f4f53a77f6c925292304eface57d12c6 (diff)
downloadpdfium-fdb35ffb8d4bd283dd8f5905936f5c400fea3394.tar.xz
Implement CGdiPrinterDriver::DrawDeviceText().chromium/2801
This is sufficient to print text with GDI for PDFs generated by Chromium and cannot print any arbitrary PDF. Text that cannot be printed will be drawn as glyphs as before. BUG=409472 Review-Url: https://codereview.chromium.org/2113563003
Diffstat (limited to 'core/fxge/include')
-rw-r--r--core/fxge/include/fx_ge_win32.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/fxge/include/fx_ge_win32.h b/core/fxge/include/fx_ge_win32.h
index c0889c1852..5b57863ab5 100644
--- a/core/fxge/include/fx_ge_win32.h
+++ b/core/fxge/include/fx_ge_win32.h
@@ -16,6 +16,16 @@
class IFX_RenderDeviceDriver;
+#if defined(PDFIUM_PRINT_TEXT_WITH_GDI)
+typedef void (*PDFiumEnsureTypefaceCharactersAccessible)(const LOGFONT* font,
+ const wchar_t* text,
+ size_t text_length);
+
+extern bool g_pdfium_print_text_with_gdi;
+extern PDFiumEnsureTypefaceCharactersAccessible
+ g_pdfium_typeface_accessible_func;
+#endif
+
typedef struct WINDIB_Open_Args_ {
int flags;