| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |