#include "core/fxge/fx_font.h"
#include <stdint.h>
#include <algorithm>
#include "core/fxcrt/byteorder.h"
#include "core/fxcrt/fx_safe_types.h"
#include "core/fxcrt/numerics/safe_conversions.h"
#include "core/fxcrt/widestring.h"
#include "core/fxge/cfx_glyphbitmap.h"
#include "core/fxge/dib/cfx_dibitmap.h"
#include "core/fxge/freetype/fx_freetype.h"
#include "core/fxge/text_glyph_pos.h"
namespace {
constexpr uint16_t kNameMacEncodingRoman = …;
constexpr uint16_t kNameWindowsEncodingUnicode = …;
ByteString GetStringFromTable(pdfium::span<const uint8_t> string_span,
uint16_t offset,
uint16_t length) { … }
}
FX_RECT GetGlyphsBBox(const std::vector<TextGlyphPos>& glyphs, int anti_alias) { … }
ByteString GetNameFromTT(pdfium::span<const uint8_t> name_table,
uint32_t name_id) { … }
size_t GetTTCIndex(pdfium::span<const uint8_t> pFontData, size_t font_offset) { … }
wchar_t UnicodeFromAdobeName(const char* name) { … }
ByteString AdobeNameFromUnicode(wchar_t unicode) { … }
int NormalizeFontMetric(int64_t value, uint16_t upem) { … }