summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-02-24 16:16:02 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-02-24 21:37:22 +0000
commit412fa65331cc04776bf1e3da5f51f29ea0fc7937 (patch)
treec705c0fdbf29e1b51ff268aa18352e1ffd6c0562 /core/fpdfapi/parser
parent0b6447a7231b5263d10f2bd9be3088f93af9629f (diff)
downloadpdfium-412fa65331cc04776bf1e3da5f51f29ea0fc7937.tar.xz
Remove repeated flags from CPDF_Fontchromium/3023
Moved all the flags to CFX_Font. Explicitly stated which ones are valued according to the PDF spec to avoid their values being changed. Change-Id: Ib57593234a4b9b83ef1ad593d0396c64159f303f Reviewed-on: https://pdfium-review.googlesource.com/2837 Commit-Queue: Nicolás Peña <npm@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser')
-rw-r--r--core/fpdfapi/parser/cpdf_document.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/fpdfapi/parser/cpdf_document.cpp b/core/fpdfapi/parser/cpdf_document.cpp
index e425cfc328..21eb61a991 100644
--- a/core/fpdfapi/parser/cpdf_document.cpp
+++ b/core/fpdfapi/parser/cpdf_document.cpp
@@ -279,19 +279,19 @@ int CalculateFlags(bool bold,
bool symbolic) {
int flags = 0;
if (bold)
- flags |= PDFFONT_FORCEBOLD;
+ flags |= FXFONT_BOLD;
if (italic)
- flags |= PDFFONT_ITALIC;
+ flags |= FXFONT_ITALIC;
if (fixedPitch)
- flags |= PDFFONT_FIXEDPITCH;
+ flags |= FXFONT_FIXED_PITCH;
if (serif)
- flags |= PDFFONT_SERIF;
+ flags |= FXFONT_SERIF;
if (script)
- flags |= PDFFONT_SCRIPT;
+ flags |= FXFONT_SCRIPT;
if (symbolic)
- flags |= PDFFONT_SYMBOLIC;
+ flags |= FXFONT_SYMBOLIC;
else
- flags |= PDFFONT_NONSYMBOLIC;
+ flags |= FXFONT_NONSYMBOLIC;
return flags;
}