Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Issue 1306883002: Added a fallback Win32 font information class for win32k lockdown. (Closed)

Created:
5 years, 4 months ago by forshaw
Modified:
5 years, 2 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

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 Committed: https://pdfium.googlesource.com/pdfium/+/d7ba833df5c9dc70cb94dba2d0aae1339b345ae4

Patch Set 1 : Added font fallback class. #

Total comments: 18

Patch Set 2 : Fixes from review and reuse more code. #

Total comments: 1

Patch Set 3 : Fixed linux font regressions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -111 lines) Patch
M core/include/fxge/fx_font.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M core/src/fxge/ge/fx_ge_fontmap.cpp View 1 2 1 chunk +99 lines, -0 lines 0 comments Download
M core/src/fxge/ge/fx_ge_linux.cpp View 1 2 4 chunks +4 lines, -110 lines 0 comments Download
M core/src/fxge/win32/fx_win32_device.cpp View 1 3 chunks +50 lines, -1 line 0 comments Download

Messages

Total messages: 16 (6 generated)
forshaw
Could you please review this change to PDFium to add a fallback font manager when ...
5 years, 2 months ago (2015-09-29 13:04:06 UTC) #5
Tom Sepez
Thanks. Wondering how much is windows-specific and how much could be made common for all ...
5 years, 2 months ago (2015-09-29 16:26:04 UTC) #6
forshaw
Thanks, looking to see if I can better merge *nix and Windows versions of the ...
5 years, 2 months ago (2015-09-29 16:46:23 UTC) #7
forshaw
tsepez@ PTAL. I've moved some code shared between Linux and Windows into the common base. ...
5 years, 2 months ago (2015-10-01 13:07:59 UTC) #10
Tom Sepez
lgtm https://codereview.chromium.org/1306883002/diff/120001/core/src/fxge/ge/fx_ge_fontmap.cpp File core/src/fxge/ge/fx_ge_fontmap.cpp (right): https://codereview.chromium.org/1306883002/diff/120001/core/src/fxge/ge/fx_ge_fontmap.cpp#newcode1436 core/src/fxge/ge/fx_ge_fontmap.cpp:1436: return NULL; nit: prefer nullptr to NULL. We've ...
5 years, 2 months ago (2015-10-01 15:55:56 UTC) #11
Tom Sepez
Actually, this seems to have produced different results for the test on linux, presumably because ...
5 years, 2 months ago (2015-10-01 16:25:39 UTC) #12
forshaw
tsepez@ PTAL. I worked out what I did wrong, I used the wrong subst table ...
5 years, 2 months ago (2015-10-05 13:28:23 UTC) #13
Tom Sepez
lgtm
5 years, 2 months ago (2015-10-05 19:54:11 UTC) #14
Tom Sepez
On 2015/10/05 19:54:11, Tom Sepez wrote: > lgtm I'm going to land this, stay tuned.
5 years, 2 months ago (2015-10-05 19:56:34 UTC) #15
Tom Sepez
5 years, 2 months ago (2015-10-05 19:57:23 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:140001) manually as
d7ba833df5c9dc70cb94dba2d0aae1339b345ae4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698