| 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_FXGE_INCLUDE_FX_FONT_H_ | 7 #ifndef CORE_FXGE_INCLUDE_FX_FONT_H_ |
| 8 #define CORE_FXGE_INCLUDE_FX_FONT_H_ | 8 #define CORE_FXGE_INCLUDE_FX_FONT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 }; | 567 }; |
| 568 | 568 |
| 569 struct FXTEXT_GLYPHPOS { | 569 struct FXTEXT_GLYPHPOS { |
| 570 const CFX_GlyphBitmap* m_pGlyph; | 570 const CFX_GlyphBitmap* m_pGlyph; |
| 571 int m_OriginX; | 571 int m_OriginX; |
| 572 int m_OriginY; | 572 int m_OriginY; |
| 573 FX_FLOAT m_fOriginX; | 573 FX_FLOAT m_fOriginX; |
| 574 FX_FLOAT m_fOriginY; | 574 FX_FLOAT m_fOriginY; |
| 575 }; | 575 }; |
| 576 | 576 |
| 577 void Color2Argb(FX_ARGB& argb, | |
| 578 uint32_t color, | |
| 579 int alpha_flag, | |
| 580 void* pIccTransform); | |
| 581 | |
| 582 FX_RECT FXGE_GetGlyphsBBox(const std::vector<FXTEXT_GLYPHPOS>& glyphs, | 577 FX_RECT FXGE_GetGlyphsBBox(const std::vector<FXTEXT_GLYPHPOS>& glyphs, |
| 583 int anti_alias, | 578 int anti_alias, |
| 584 FX_FLOAT retinaScaleX = 1.0f, | 579 FX_FLOAT retinaScaleX = 1.0f, |
| 585 FX_FLOAT retinaScaleY = 1.0f); | 580 FX_FLOAT retinaScaleY = 1.0f); |
| 586 | 581 |
| 587 CFX_ByteString GetNameFromTT(const uint8_t* name_table, | 582 CFX_ByteString GetNameFromTT(const uint8_t* name_table, |
| 588 uint32_t name_table_size, | 583 uint32_t name_table_size, |
| 589 uint32_t name); | 584 uint32_t name); |
| 590 | 585 |
| 591 int PDF_GetStandardFontName(CFX_ByteString* name); | 586 int PDF_GetStandardFontName(CFX_ByteString* name); |
| 592 | 587 |
| 593 #endif // CORE_FXGE_INCLUDE_FX_FONT_H_ | 588 #endif // CORE_FXGE_INCLUDE_FX_FONT_H_ |
| OLD | NEW |