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

Side by Side Diff: core/include/fxge/fx_font.h

Issue 1608593003: Fix an assertion failure in CXFA_FWLTheme::Initialize() (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Rebase Created 4 years, 11 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
« no previous file with comments | « no previous file | xfa/src/fgas/src/font/fx_stdfontmgr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CORE_INCLUDE_FXGE_FX_FONT_H_ 7 #ifndef CORE_INCLUDE_FXGE_FX_FONT_H_
8 #define CORE_INCLUDE_FXGE_FX_FONT_H_ 8 #define CORE_INCLUDE_FXGE_FX_FONT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 int italic_angle, 318 int italic_angle,
319 int CharsetCP, 319 int CharsetCP,
320 CFX_SubstFont* pSubstFont); 320 CFX_SubstFont* pSubstFont);
321 #ifdef PDF_ENABLE_XFA 321 #ifdef PDF_ENABLE_XFA
322 FXFT_Face FindSubstFontByUnicode(FX_DWORD dwUnicode, 322 FXFT_Face FindSubstFontByUnicode(FX_DWORD dwUnicode,
323 FX_DWORD flags, 323 FX_DWORD flags,
324 int weight, 324 int weight,
325 int italic_angle); 325 int italic_angle);
326 #endif // PDF_ENABLE_XFA 326 #endif // PDF_ENABLE_XFA
327 FX_BOOL IsBuiltinFace(const FXFT_Face face) const; 327 FX_BOOL IsBuiltinFace(const FXFT_Face face) const;
328 int GetFaceSize() const { return m_FaceArray.GetSize(); }
329 CFX_ByteString GetFaceName(int index) const { return m_FaceArray[index]; }
328 330
329 private: 331 private:
330 static const size_t MM_FACE_COUNT = 2; 332 static const size_t MM_FACE_COUNT = 2;
331 static const size_t FOXIT_FACE_COUNT = 14; 333 static const size_t FOXIT_FACE_COUNT = 14;
332 334
333 CFX_ByteString GetPSNameFromTT(void* hFont); 335 CFX_ByteString GetPSNameFromTT(void* hFont);
334 CFX_ByteString MatchInstalledFonts(const CFX_ByteString& norm_name); 336 CFX_ByteString MatchInstalledFonts(const CFX_ByteString& norm_name);
335 FXFT_Face UseInternalSubst(CFX_SubstFont* pSubstFont, 337 FXFT_Face UseInternalSubst(CFX_SubstFont* pSubstFont,
336 int iBaseFont, 338 int iBaseFont,
337 int italic_angle, 339 int italic_angle,
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 532
531 protected: 533 protected:
532 virtual ~IFX_GSUBTable() {} 534 virtual ~IFX_GSUBTable() {}
533 }; 535 };
534 536
535 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name); 537 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name);
536 538
537 int PDF_GetStandardFontName(CFX_ByteString* name); 539 int PDF_GetStandardFontName(CFX_ByteString* name);
538 540
539 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ 541 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/src/fgas/src/font/fx_stdfontmgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698