58 const
std::vector<
char32_t>& chars,
61 int max_atlas_size = 2048);
85 std::unique_ptr<Impl> impl_;
const SdfGlyph * glyph(char32_t codepoint) const
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)
SdfAtlas(const SdfAtlas &)=delete
const std::uint8_t * pixels() const
SdfAtlas & operator=(const SdfAtlas &)=delete
SdfAtlas(SdfAtlas &&) noexcept
std::size_t glyph_count() const
Definition affine_transform.hpp:24
Definition sdf_atlas.hpp:25
float advance
Definition sdf_atlas.hpp:33
char32_t codepoint
Definition sdf_atlas.hpp:26
int height
Definition sdf_atlas.hpp:30
int width
Definition sdf_atlas.hpp:29
int atlas_x
Definition sdf_atlas.hpp:27
float bearing_x
Definition sdf_atlas.hpp:31
float bearing_y
Definition sdf_atlas.hpp:32
int atlas_y
Definition sdf_atlas.hpp:28