Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: core/fpdfapi/fpdf_font/cpdf_type1font.cpp

Issue 2368693002: Remove FX_BOOL from cpdf_font (Closed)
Patch Set: And again Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "core/fpdfapi/fpdf_font/cpdf_type1font.h" 7 #include "core/fpdfapi/fpdf_font/cpdf_type1font.h"
8 8
9 #include "core/fpdfapi/fpdf_font/font_int.h" 9 #include "core/fpdfapi/fpdf_font/font_int.h"
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 const CPDF_Type1Font* CPDF_Type1Font::AsType1Font() const { 72 const CPDF_Type1Font* CPDF_Type1Font::AsType1Font() const {
73 return this; 73 return this;
74 } 74 }
75 75
76 CPDF_Type1Font* CPDF_Type1Font::AsType1Font() { 76 CPDF_Type1Font* CPDF_Type1Font::AsType1Font() {
77 return this; 77 return this;
78 } 78 }
79 79
80 FX_BOOL CPDF_Type1Font::Load() { 80 bool CPDF_Type1Font::Load() {
81 m_Base14Font = PDF_GetStandardFontName(&m_BaseFont); 81 m_Base14Font = PDF_GetStandardFontName(&m_BaseFont);
82 if (m_Base14Font >= 0) { 82 if (m_Base14Font >= 0) {
83 CPDF_Dictionary* pFontDesc = m_pFontDict->GetDictFor("FontDescriptor"); 83 CPDF_Dictionary* pFontDesc = m_pFontDict->GetDictFor("FontDescriptor");
84 if (pFontDesc && pFontDesc->KeyExist("Flags")) 84 if (pFontDesc && pFontDesc->KeyExist("Flags"))
85 m_Flags = pFontDesc->GetIntegerFor("Flags"); 85 m_Flags = pFontDesc->GetIntegerFor("Flags");
86 else 86 else
87 m_Flags = m_Base14Font >= 12 ? PDFFONT_SYMBOLIC : PDFFONT_NONSYMBOLIC; 87 m_Flags = m_Base14Font >= 12 ? PDFFONT_SYMBOLIC : PDFFONT_NONSYMBOLIC;
88 88
89 if (m_Base14Font < 4) { 89 if (m_Base14Font < 4) {
90 for (int i = 0; i < 256; i++) 90 for (int i = 0; i < 256; i++)
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 m_Encoding.m_Unicodes[charcode] = 0x20; 389 m_Encoding.m_Unicodes[charcode] = 0x20;
390 m_GlyphIndex[charcode] = 0xffff; 390 m_GlyphIndex[charcode] = 0xffff;
391 } 391 }
392 } 392 }
393 } 393 }
394 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ 394 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_
395 if (!bCoreText) 395 if (!bCoreText)
396 FXSYS_memcpy(m_ExtGID, m_GlyphIndex, 256); 396 FXSYS_memcpy(m_ExtGID, m_GlyphIndex, 256);
397 #endif 397 #endif
398 } 398 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698