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

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

Issue 1520643002: Replace several more CFX_MapPtrToPtr with std::set or std::map (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years 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 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 CFX_ByteStringC& FaceGlyphsKey, 417 CFX_ByteStringC& FaceGlyphsKey,
418 FX_DWORD glyph_index, 418 FX_DWORD glyph_index,
419 FX_BOOL bFontStyle, 419 FX_BOOL bFontStyle,
420 int dest_width, 420 int dest_width,
421 int anti_alias); 421 int anti_alias);
422 void InitPlatform(); 422 void InitPlatform();
423 void DestroyPlatform(); 423 void DestroyPlatform();
424 424
425 FXFT_Face const m_Face; 425 FXFT_Face const m_Face;
426 std::map<CFX_ByteString, CFX_SizeGlyphCache*> m_SizeMap; 426 std::map<CFX_ByteString, CFX_SizeGlyphCache*> m_SizeMap;
427 CFX_MapPtrToPtr m_PathMap; 427 std::map<FX_DWORD, CFX_PathData*> m_PathMap;
428 CFX_DIBitmap* m_pBitmap; 428 CFX_DIBitmap* m_pBitmap;
429 }; 429 };
430 430
431 struct FXTEXT_GLYPHPOS { 431 struct FXTEXT_GLYPHPOS {
432 const CFX_GlyphBitmap* m_pGlyph; 432 const CFX_GlyphBitmap* m_pGlyph;
433 int m_OriginX; 433 int m_OriginX;
434 int m_OriginY; 434 int m_OriginY;
435 FX_FLOAT m_fOriginX; 435 FX_FLOAT m_fOriginX;
436 FX_FLOAT m_fOriginY; 436 FX_FLOAT m_fOriginY;
437 }; 437 };
(...skipping 11 matching lines...) Expand all
449 449
450 protected: 450 protected:
451 virtual ~IFX_GSUBTable() {} 451 virtual ~IFX_GSUBTable() {}
452 }; 452 };
453 453
454 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name); 454 CFX_ByteString GetNameFromTT(const uint8_t* name_table, FX_DWORD name);
455 455
456 int PDF_GetStandardFontName(CFX_ByteString* name); 456 int PDF_GetStandardFontName(CFX_ByteString* name);
457 457
458 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ 458 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698