diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-05 12:57:17 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-05 12:57:17 -0700 |
commit | d7ba833df5c9dc70cb94dba2d0aae1339b345ae4 (patch) | |
tree | 58bcf8ed6c54fbc63a5173593f52fbef2baa4eb0 /core/include | |
parent | fd12ec5584d9a17f310a2c0c408a438ef3b1ce63 (diff) | |
download | pdfium-d7ba833df5c9dc70cb94dba2d0aae1339b345ae4.tar.xz |
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 .
Diffstat (limited to 'core/include')
-rw-r--r-- | core/include/fxge/fx_font.h | 7 |
1 files changed, 7 insertions, 0 deletions
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: |