DescriptionAdd font map user metrics for Linux.
The method MapFont, defined in pdfium_engine.cc, is used by Chrome on
Linux to find a substitute font whenever a pdf file uses a font which is
not embedded (or could not be loaded). When this method is called, the
method UserMetricsRecordAction will now be called to record that this
document has requested a substitute font.
Adding similar functionality for other OS's will take more effort just
because the MapFont definitions are completely inside pdfium core.
BUG=chromium:448584
Committed: https://crrev.com/d24ca0432921fdf310c781c3a63aac7387306a9f
Cr-Commit-Position: refs/heads/master@{#424877}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Use histogram instead of action #
Total comments: 1
Patch Set 3 : Using Boolean #
Total comments: 7
Patch Set 4 : Use ScopedSubstFont #Patch Set 5 : Restore spacing #
Total comments: 2
Patch Set 6 : Comments #Patch Set 7 : No ScopedSubstFont in PDFiumEngineExports #
Messages
Total messages: 27 (9 generated)
|