diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-09-28 11:51:24 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-09-28 20:39:56 +0000 |
commit | dd0e6e1eba14c76dedd4b4e55ab47406856c9a76 (patch) | |
tree | 36f27e3ec86b5c376d51bcd753cbdfbe3402e6c7 /core/fxge/fx_font.h | |
parent | 58418a24debb15019ec71eca193eff02c2a4846c (diff) | |
download | pdfium-dd0e6e1eba14c76dedd4b4e55ab47406856c9a76.tar.xz |
Cleanup font defines
This CL removes duplicate defines between XFA and core. Several OR'd
values have been coverted into individual booleans to make the code
clearer.
Change-Id: Ic32a71c711cffd9a0cf1136e5a22f0502e085c39
Reviewed-on: https://pdfium-review.googlesource.com/15071
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/fx_font.h')
-rw-r--r-- | core/fxge/fx_font.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fxge/fx_font.h b/core/fxge/fx_font.h index 0271b78a22..8f559829b6 100644 --- a/core/fxge/fx_font.h +++ b/core/fxge/fx_font.h @@ -34,6 +34,7 @@ using CFX_TypeFace = SkTypeface; #define FXFONT_FW_BOLD 700 /* Font styles as defined in PDF 1.7 Table 5.20 */ +#define FXFONT_NORMAL (0) #define FXFONT_FIXED_PITCH (1 << 0) #define FXFONT_SERIF (1 << 1) #define FXFONT_SYMBOLIC (1 << 2) @@ -43,6 +44,7 @@ using CFX_TypeFace = SkTypeface; #define FXFONT_ALLCAP (1 << 16) #define FXFONT_SMALLCAP (1 << 17) #define FXFONT_BOLD (1 << 18) +#define FXFONT_BOLD_ITALIC (FXFONT_BOLD | FXFONT_ITALIC) /* Other font flags */ #define FXFONT_USEEXTERNATTR 0x80000 |