Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cfx_fontcache.h
Go to the documentation of this file.
1// Copyright 2016 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef CORE_FXGE_CFX_FONTCACHE_H_
8#define CORE_FXGE_CFX_FONTCACHE_H_
9
10#include <map>
11
12#include "core/fxcrt/fx_system.h"
13#include "core/fxcrt/retain_ptr.h"
14#include "core/fxge/cfx_glyphcache.h"
15
16class CFX_Font;
17
19 public:
22
23 RetainPtr<CFX_GlyphCache> GetGlyphCache(const CFX_Font* pFont);
24#if defined(PDF_USE_SKIA)
26#endif
27
28 private:
29 std::map<CFX_Face*, ObservedPtr<CFX_GlyphCache>> m_GlyphCacheMap;
30 std::map<CFX_Face*, ObservedPtr<CFX_GlyphCache>> m_ExtGlyphCacheMap;
31};
32
33#endif // CORE_FXGE_CFX_FONTCACHE_H_
RetainPtr< CFX_GlyphCache > GetGlyphCache(const CFX_Font *pFont)
static ByteString GetDefaultFontNameByCharset(FX_Charset nCharset)
Definition cfx_font.cpp:103
int GetSubstFontItalicAngle() const
Definition cfx_font.cpp:164
int GetGlyphWidth(uint32_t glyph_index, int dest_width, int weight) const
Definition cfx_font.cpp:243
const CFX_GlyphBitmap * LoadGlyphBitmap(uint32_t glyph_index, bool bFontStyle, const CFX_Matrix &matrix, int dest_width, int anti_alias, CFX_TextRenderOptions *text_options) const
Definition cfx_font.cpp:453
const CFX_Path * LoadGlyphPath(uint32_t glyph_index, int dest_width) const
Definition cfx_font.cpp:465
absl::optional< FX_RECT > GetBBox() const
Definition cfx_font.cpp:418
int GetGlyphWidth(uint32_t glyph_index) const
Definition cfx_font.cpp:239
static const CharsetFontMap kDefaultTTFMap[]
Definition cfx_font.h:78
std::unique_ptr< CFX_Path > LoadGlyphPathImpl(uint32_t glyph_index, int dest_width) const
Definition cfx_font.cpp:444
absl::optional< FX_RECT > GetRawBBox() const
Definition cfx_font.cpp:412
ByteString GetPsName() const
Definition cfx_font.cpp:358
int GetDescent() const
Definition cfx_font.cpp:281
ByteString GetBaseFontName() const
Definition cfx_font.cpp:394
bool IsItalic() const
Definition cfx_font.cpp:331
bool IsTTFont() const
Definition cfx_font.cpp:273
absl::optional< FX_RECT > GetGlyphBBox(uint32_t glyph_index)
Definition cfx_font.cpp:285
bool IsFixedWidth() const
Definition cfx_font.cpp:347
bool LoadEmbedded(pdfium::span< const uint8_t > src_span, bool force_vertical, uint64_t object_tag)
Definition cfx_font.cpp:260
int GetGlyphWidthImpl(uint32_t glyph_index, int dest_width, int weight) const
Definition cfx_font.cpp:250
static const char kDefaultAnsiFontName[]
Definition cfx_font.h:58
ByteString GetFaceName() const
Definition cfx_font.cpp:381
static const char kUniversalDefaultFontName[]
Definition cfx_font.h:59
static FX_Charset GetCharSetFromUnicode(uint16_t word)
Definition cfx_font.cpp:112
static const char kUntitledFontName[]
Definition cfx_font.h:56
int GetAscent() const
Definition cfx_font.cpp:277
void LoadSubst(const ByteString &face_name, bool bTrueType, uint32_t flags, int weight, int italic_angle, FX_CodePage code_page, bool bVertical)
Definition cfx_font.cpp:220
CFX_SubstFont * GetSubstFont() const
Definition cfx_font.h:82
bool IsBold() const
Definition cfx_font.cpp:343
ByteString GetFamilyName() const
Definition cfx_font.cpp:368
ByteString & operator+=(const ByteString &str)
ByteString & operator=(const char *str)
bool IsEmpty() const
Definition bytestring.h:119
bool operator!=(const char *ptr) const
Definition bytestring.h:130
FX_Charset
Definition fx_codepage.h:70
@ kChineseTraditional
@ kMSWin_EasternEuropean
@ kChineseSimplified
FX_CodePage
Definition fx_codepage.h:18
#define FXFT_Get_Glyph_Width(face)
Definition fx_freetype.h:58
#define FXFT_Get_Glyph_Height(face)
Definition fx_freetype.h:59
#define FXFT_Get_Glyph_HoriBearingX(face)
Definition fx_freetype.h:56
#define FXFT_Get_Glyph_HoriBearingY(face)
Definition fx_freetype.h:57
ByteString operator+(const char *str1, const ByteString &str2)
Definition bytestring.h:282
int32_t bottom
int32_t right
int32_t top
int32_t left