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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 FX_FLOAT m_fOriginX; | 525 FX_FLOAT m_fOriginX; |
526 FX_FLOAT m_fOriginY; | 526 FX_FLOAT m_fOriginY; |
527 }; | 527 }; |
528 | 528 |
529 FX_RECT FXGE_GetGlyphsBBox(FXTEXT_GLYPHPOS* pGlyphAndPos, | 529 FX_RECT FXGE_GetGlyphsBBox(FXTEXT_GLYPHPOS* pGlyphAndPos, |
530 int nChars, | 530 int nChars, |
531 int anti_alias, | 531 int anti_alias, |
532 FX_FLOAT retinaScaleX = 1.0f, | 532 FX_FLOAT retinaScaleX = 1.0f, |
533 FX_FLOAT retinaScaleY = 1.0f); | 533 FX_FLOAT retinaScaleY = 1.0f); |
534 | 534 |
535 class IFX_GSUBTable { | |
536 public: | |
537 static IFX_GSUBTable* Create(CFX_Font* pFont); | |
538 virtual FX_BOOL GetVerticalGlyph(uint32_t glyphnum, uint32_t* vglyphnum) = 0; | |
539 | |
540 protected: | |
541 virtual ~IFX_GSUBTable() {} | |
542 }; | |
543 | |
544 CFX_ByteString GetNameFromTT(const uint8_t* name_table, | 535 CFX_ByteString GetNameFromTT(const uint8_t* name_table, |
545 uint32_t name_table_size, | 536 uint32_t name_table_size, |
546 uint32_t name); | 537 uint32_t name); |
547 | 538 |
548 int PDF_GetStandardFontName(CFX_ByteString* name); | 539 int PDF_GetStandardFontName(CFX_ByteString* name); |
549 | 540 |
550 #endif // CORE_FXGE_INCLUDE_FX_FONT_H_ | 541 #endif // CORE_FXGE_INCLUDE_FX_FONT_H_ |
OLD | NEW |