#include "core/fpdfapi/font/cpdf_simplefont.h"
#include <algorithm>
#include <iterator>
#include <utility>
#include "constants/font_encodings.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_name.h"
#include "core/fxcrt/fx_codepage.h"
#include "core/fxcrt/stl_util.h"
#include "core/fxge/freetype/fx_freetype.h"
#include "core/fxge/fx_font.h"
namespace {
void GetPredefinedEncoding(const ByteString& value, FontEncoding* basemap) { … }
}
CPDF_SimpleFont::CPDF_SimpleFont(CPDF_Document* pDocument,
RetainPtr<CPDF_Dictionary> pFontDict)
: … { … }
CPDF_SimpleFont::~CPDF_SimpleFont() = default;
int CPDF_SimpleFont::GlyphFromCharCode(uint32_t charcode, bool* pVertGlyph) { … }
void CPDF_SimpleFont::LoadCharMetrics(int charcode) { … }
void CPDF_SimpleFont::LoadCharWidths(const CPDF_Dictionary* font_desc) { … }
void CPDF_SimpleFont::LoadDifferences(const CPDF_Dictionary* encoding) { … }
void CPDF_SimpleFont::LoadPDFEncoding(bool bEmbedded, bool bTrueType) { … }
int CPDF_SimpleFont::GetCharWidthF(uint32_t charcode) { … }
FX_RECT CPDF_SimpleFont::GetCharBBox(uint32_t charcode) { … }
bool CPDF_SimpleFont::LoadCommon() { … }
void CPDF_SimpleFont::LoadSubstFont() { … }
bool CPDF_SimpleFont::IsUnicodeCompatible() const { … }
WideString CPDF_SimpleFont::UnicodeFromCharCode(uint32_t charcode) const { … }
uint32_t CPDF_SimpleFont::CharCodeFromUnicode(wchar_t unicode) const { … }
bool CPDF_SimpleFont::HasFontWidths() const { … }