| 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 typedef struct { | 424 typedef struct { |
| 425 const CFX_GlyphBitmap* m_pGlyph; | 425 const CFX_GlyphBitmap* m_pGlyph; |
| 426 int m_OriginX, m_OriginY; | 426 int m_OriginX, m_OriginY; |
| 427 FX_FLOAT m_fOriginX, m_fOriginY; | 427 FX_FLOAT m_fOriginX, m_fOriginY; |
| 428 } FXTEXT_GLYPHPOS; | 428 } FXTEXT_GLYPHPOS; |
| 429 FX_RECT FXGE_GetGlyphsBBox(FXTEXT_GLYPHPOS* pGlyphAndPos, | 429 FX_RECT FXGE_GetGlyphsBBox(FXTEXT_GLYPHPOS* pGlyphAndPos, |
| 430 int nChars, | 430 int nChars, |
| 431 int anti_alias, | 431 int anti_alias, |
| 432 FX_FLOAT retinaScaleX = 1.0f, | 432 FX_FLOAT retinaScaleX = 1.0f, |
| 433 FX_FLOAT retinaScaleY = 1.0f); | 433 FX_FLOAT retinaScaleY = 1.0f); |
| 434 FX_BOOL OutputGlyph(void* dib, | |
| 435 int x, | |
| 436 int y, | |
| 437 CFX_Font* pFont, | |
| 438 double font_size, | |
| 439 CFX_AffineMatrix* pMatrix, | |
| 440 unsigned long glyph_index, | |
| 441 unsigned long argb); | |
| 442 FX_BOOL OutputText(void* dib, | |
| 443 int x, | |
| 444 int y, | |
| 445 CFX_Font* pFont, | |
| 446 double font_size, | |
| 447 CFX_AffineMatrix* pText_matrix, | |
| 448 unsigned short const* text, | |
| 449 unsigned long argb); | |
| 450 class IFX_GSUBTable { | 434 class IFX_GSUBTable { |
| 451 public: | 435 public: |
| 452 static IFX_GSUBTable* Create(CFX_Font* pFont); | 436 static IFX_GSUBTable* Create(CFX_Font* pFont); |
| 453 virtual ~IFX_GSUBTable() {} | 437 virtual ~IFX_GSUBTable() {} |
| 454 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0; | 438 virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) = 0; |
| 455 }; | 439 }; |
| 456 | 440 |
| 457 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ | 441 #endif // CORE_INCLUDE_FXGE_FX_FONT_H_ |
| OLD | NEW |