From 412fa65331cc04776bf1e3da5f51f29ea0fc7937 Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Fri, 24 Feb 2017 16:16:02 -0500 Subject: Remove repeated flags from CPDF_Font MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Tom Sepez --- core/fpdfapi/parser/cpdf_document.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'core/fpdfapi/parser') 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; } -- cgit v1.2.3