From d7ba833df5c9dc70cb94dba2d0aae1339b345ae4 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 5 Oct 2015 12:57:17 -0700 Subject: Original patch by forshaw. Added a fallback Win32 font information class for win32k lockdown. This is to support running PDFIUM within the Win32k lockdown by removing dependancies on USER32/GDI for the font information code. It falls back to using a freetype/directory enumeration implementation if it detects the win32k system calls have been disabled by policy. BUG=523278 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1306883002 . --- core/include/fxge/fx_font.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/include/fxge') diff --git a/core/include/fxge/fx_font.h b/core/include/fxge/fx_font.h index 8f6db1eb8b..bdaeff7dd6 100644 --- a/core/include/fxge/fx_font.h +++ b/core/include/fxge/fx_font.h @@ -338,6 +338,13 @@ class CFX_FolderFontInfo : public IFX_SystemFontInfo { FXSYS_FILE* pFile, FX_DWORD filesize, FX_DWORD offset); + void* GetSubstFont(const CFX_ByteString& face); + void* FindFont(int weight, + FX_BOOL bItalic, + int charset, + int pitch_family, + const FX_CHAR* family, + FX_BOOL bMatchName); }; class CFX_CountedFaceCache { public: -- cgit v1.2.3