summaryrefslogtreecommitdiff
path: root/core/fxge/ge/cfx_font.cpp
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-09-23 16:54:50 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-23 16:54:50 -0700
commitbfe9afc2ab1d883bb036a1c3b35b429229708875 (patch)
tree75572f3a19e07ec73a7f15fb3811e78d72f3104e /core/fxge/ge/cfx_font.cpp
parentb4d7c682bd47f12cb16a5c5c523f58ea0742c730 (diff)
downloadpdfium-chromium/2870.tar.xz
Remove FX_BOOL from cpdf_fontchromium/2872chromium/2871chromium/2870
In all cases, bool can be used instead without problems. Review-Url: https://codereview.chromium.org/2368693002
Diffstat (limited to 'core/fxge/ge/cfx_font.cpp')
-rw-r--r--core/fxge/ge/cfx_font.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/fxge/ge/cfx_font.cpp b/core/fxge/ge/cfx_font.cpp
index b184711211..ce77cbf661 100644
--- a/core/fxge/ge/cfx_font.cpp
+++ b/core/fxge/ge/cfx_font.cpp
@@ -233,8 +233,8 @@ CFX_Font::CFX_Font()
#if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_
m_pPlatformFont(nullptr),
#endif
- m_bEmbedded(FALSE),
- m_bVertical(FALSE) {
+ m_bEmbedded(false),
+ m_bVertical(false) {
}
#ifdef PDF_ENABLE_XFA
@@ -316,8 +316,8 @@ void CFX_Font::LoadSubst(const CFX_ByteString& face_name,
int weight,
int italic_angle,
int CharsetCP,
- FX_BOOL bVertical) {
- m_bEmbedded = FALSE;
+ bool bVertical) {
+ m_bEmbedded = false;
m_bVertical = bVertical;
m_pSubstFont.reset(new CFX_SubstFont);
m_Face = CFX_GEModule::Get()->GetFontMgr()->FindSubstFont(
@@ -371,14 +371,14 @@ FX_BOOL CFX_Font::LoadEmbedded(const uint8_t* data, uint32_t size) {
m_pFontDataAllocation.swap(temp);
m_Face = FT_LoadFont(m_pFontDataAllocation.data(), size);
m_pFontData = m_pFontDataAllocation.data();
- m_bEmbedded = TRUE;
+ m_bEmbedded = true;
m_dwSize = size;
return !!m_Face;
}
-FX_BOOL CFX_Font::IsTTFont() const {
+bool CFX_Font::IsTTFont() const {
if (!m_Face)
- return FALSE;
+ return false;
return FXFT_Is_Face_TT_OT(m_Face) == FXFT_FACE_FLAG_SFNT;
}