5#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TYPEFACE_STB_H_
6#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TYPEFACE_STB_H_
8#include "flutter/fml/mapping.h"
9#include "flutter/third_party/stb/stb_truetype.h"
22 explicit TypefaceSTB(std::unique_ptr<fml::Mapping> typeface_mapping);
30 std::size_t
GetHash()
const override;
39 std::unique_ptr<fml::Mapping> typeface_mapping_;
40 std::unique_ptr<stbtt_fontinfo> font_info_;
41 bool is_valid_ =
false;
bool IsValid() const override
const stbtt_fontinfo * GetFontInfo() const
std::size_t GetHash() const override
static constexpr float kPointsToPixels
TypefaceSTB(std::unique_ptr< fml::Mapping > typeface_mapping)
bool IsEqual(const Typeface &other) const override
const uint8_t * GetTypefaceFile() const
A typeface, usually obtained from a font-file, on disk describes the intrinsic properties of the font...