| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "core/fxge/include/cfx_facecache.h" | 7 #include "core/fxge/include/cfx_facecache.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "core/fxge/ge/fx_text_int.h" | 11 #include "core/fxge/ge/fx_text_int.h" |
| 12 #include "core/fxge/include/cfx_fontmgr.h" | 12 #include "core/fxge/include/cfx_fontmgr.h" |
| 13 #include "core/fxge/include/cfx_gemodule.h" | 13 #include "core/fxge/include/cfx_gemodule.h" |
| 14 #include "core/fxge/include/cfx_pathdata.h" | 14 #include "core/fxge/include/cfx_pathdata.h" |
| 15 #include "core/fxge/include/cfx_substfont.h" |
| 15 #include "core/fxge/include/fx_freetype.h" | 16 #include "core/fxge/include/fx_freetype.h" |
| 16 | 17 |
| 17 #ifdef _SKIA_SUPPORT_ | 18 #ifdef _SKIA_SUPPORT_ |
| 18 #include "third_party/skia/include/core/SkStream.h" | 19 #include "third_party/skia/include/core/SkStream.h" |
| 19 #include "third_party/skia/include/core/SkTypeface.h" | 20 #include "third_party/skia/include/core/SkTypeface.h" |
| 20 #endif | 21 #endif |
| 21 | 22 |
| 22 namespace { | 23 namespace { |
| 23 | 24 |
| 24 void GammaAdjust(uint8_t* pData, | 25 void GammaAdjust(uint8_t* pData, |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 return it2->second; | 375 return it2->second; |
| 375 | 376 |
| 376 CFX_GlyphBitmap* pGlyphBitmap = RenderGlyph(pFont, glyph_index, bFontStyle, | 377 CFX_GlyphBitmap* pGlyphBitmap = RenderGlyph(pFont, glyph_index, bFontStyle, |
| 377 pMatrix, dest_width, anti_alias); | 378 pMatrix, dest_width, anti_alias); |
| 378 if (!pGlyphBitmap) | 379 if (!pGlyphBitmap) |
| 379 return nullptr; | 380 return nullptr; |
| 380 | 381 |
| 381 pSizeCache->m_GlyphMap[glyph_index] = pGlyphBitmap; | 382 pSizeCache->m_GlyphMap[glyph_index] = pGlyphBitmap; |
| 382 return pGlyphBitmap; | 383 return pGlyphBitmap; |
| 383 } | 384 } |
| OLD | NEW |