59 const
std::vector<
char32_t>& chars,
62 int max_atlas_size = 2048,
63 bool include_alpha = false);
78 std::unique_ptr<Impl> impl_;
MsdfAtlas & operator=(const MsdfAtlas &)=delete
bool build(const std::string &font_family, const std::vector< char32_t > &chars, int base_size=48, int padding=8, int max_atlas_size=2048, bool include_alpha=false)
MsdfAtlas(MsdfAtlas &&) noexcept
std::size_t glyph_count() const
const MsdfGlyph * glyph(char32_t codepoint) const
MsdfAtlas(const MsdfAtlas &)=delete
const std::uint8_t * pixels() const
Definition affine_transform.hpp:24
Definition msdf_atlas.hpp:27
char32_t codepoint
Definition msdf_atlas.hpp:28
int atlas_y
Definition msdf_atlas.hpp:30
float advance
Definition msdf_atlas.hpp:35
int atlas_x
Definition msdf_atlas.hpp:29
float bearing_x
Definition msdf_atlas.hpp:33
int height
Definition msdf_atlas.hpp:32
float bearing_y
Definition msdf_atlas.hpp:34
int width
Definition msdf_atlas.hpp:31