forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add font substituted metrics for OS other than Linux
Created a struct FPDF_SYSFONTINFO_WITHMETRICS to be able to call and override methods from the default system font infos, for OS's other than Linux. This was necessary because the function pointers in the struct contain pointers to the struct. FPDF_GetDefaultSystemFontInfo returns a pointer to a FPDF_SYSFONTINFO, but in reality it is a FPDF_SYSFONTINFO_DEFAULT. So the overriden methods need to receive as input the pointer given by FPDF_GetDefaultSystemFontInfo. BUG=448584 Review-Url: https://codereview.chromium.org/2479313005 Cr-Commit-Position: refs/heads/master@{#431103}
- Loading branch information
Showing
3 changed files
with
134 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters