Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::canvas::PsdfAtlas Class Reference

#include <psdf_atlas.hpp>

Public Member Functions

 PsdfAtlas ()=default
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)
const SdfGlyph * glyph (char32_t codepoint) const
const std::uint8_t * pixels () const
int width () const
int height () const
std::size_t glyph_count () const
int base_size () const

Constructor & Destructor Documentation

◆ PsdfAtlas()

pulp::canvas::PsdfAtlas::PsdfAtlas ( )
default

Member Function Documentation

◆ base_size()

int pulp::canvas::SdfAtlas::base_size ( ) const
inherited

◆ build()

bool pulp::canvas::SdfAtlas::build ( const std::string & font_family,
const std::vector< char32_t > & chars,
int base_size = 48,
int padding = 8,
int max_atlas_size = 2048 )
inherited

◆ glyph()

const SdfGlyph * pulp::canvas::SdfAtlas::glyph ( char32_t codepoint) const
inherited

◆ glyph_count()

std::size_t pulp::canvas::SdfAtlas::glyph_count ( ) const
inherited

◆ height()

int pulp::canvas::SdfAtlas::height ( ) const
inherited

◆ pixels()

const std::uint8_t * pulp::canvas::SdfAtlas::pixels ( ) const
inherited

◆ width()

int pulp::canvas::SdfAtlas::width ( ) const
inherited

The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/canvas/include/pulp/canvas/psdf_atlas.hpp