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

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

Issue 1513363002: Remove CFX_AffineMatrix/CPDF_Matrix (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits 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
« no previous file with comments | « core/include/fxge/fx_dib.h ('k') | core/include/fxge/fx_ge.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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 int m_Left; 385 int m_Left;
386 CFX_DIBitmap m_Bitmap; 386 CFX_DIBitmap m_Bitmap;
387 }; 387 };
388 class CFX_FaceCache { 388 class CFX_FaceCache {
389 public: 389 public:
390 explicit CFX_FaceCache(FXFT_Face face); 390 explicit CFX_FaceCache(FXFT_Face face);
391 ~CFX_FaceCache(); 391 ~CFX_FaceCache();
392 const CFX_GlyphBitmap* LoadGlyphBitmap(CFX_Font* pFont, 392 const CFX_GlyphBitmap* LoadGlyphBitmap(CFX_Font* pFont,
393 FX_DWORD glyph_index, 393 FX_DWORD glyph_index,
394 FX_BOOL bFontStyle, 394 FX_BOOL bFontStyle,
395 const CFX_AffineMatrix* pMatrix, 395 const CFX_Matrix* pMatrix,
396 int dest_width, 396 int dest_width,
397 int anti_alias, 397 int anti_alias,
398 int& text_flags); 398 int& text_flags);
399 const CFX_PathData* LoadGlyphPath(CFX_Font* pFont, 399 const CFX_PathData* LoadGlyphPath(CFX_Font* pFont,
400 FX_DWORD glyph_index, 400 FX_DWORD glyph_index,
401 int dest_width); 401 int dest_width);
402 402
403 private: 403 private:
404 CFX_GlyphBitmap* RenderGlyph(CFX_Font* pFont, 404 CFX_GlyphBitmap* RenderGlyph(CFX_Font* pFont,
405 FX_DWORD glyph_index, 405 FX_DWORD glyph_index,
406 FX_BOOL bFontStyle, 406 FX_BOOL bFontStyle,
407 const CFX_AffineMatrix* pMatrix, 407 const CFX_Matrix* pMatrix,
408 int dest_width, 408 int dest_width,
409 int anti_alias); 409 int anti_alias);
410 CFX_GlyphBitmap* RenderGlyph_Nativetext(CFX_Font* pFont, 410 CFX_GlyphBitmap* RenderGlyph_Nativetext(CFX_Font* pFont,
411 FX_DWORD glyph_index, 411 FX_DWORD glyph_index,
412 const CFX_AffineMatrix* pMatrix, 412 const CFX_Matrix* pMatrix,
413 int dest_width, 413 int dest_width,
414 int anti_alias); 414 int anti_alias);
415 CFX_GlyphBitmap* LookUpGlyphBitmap(CFX_Font* pFont, 415 CFX_GlyphBitmap* LookUpGlyphBitmap(CFX_Font* pFont,
416 const CFX_AffineMatrix* pMatrix, 416 const CFX_Matrix* pMatrix,
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;
(...skipping 22 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
« no previous file with comments | « core/include/fxge/fx_dib.h ('k') | core/include/fxge/fx_ge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698