41class FontRendererImpl;
114 virtual i32
getKerning(i32 codepoint1, i32 codepoint2) const = 0;
123 i32 oversampleX, i32 oversampleY) const = 0;
155 ScaledMetrics getScaledMetrics()
const;
162 GlyphBitmap render(i32 codepoint, i32 oversampleX, i32 oversampleY)
const;
168 float getAdvance(i32 codepoint)
const;
171 float getKerning(i32 codepoint1, i32 codepoint2)
const;
175 float measureString(
const char* str)
const;
fl::UISlider scale("Scale", 4,.1, 4,.1)
virtual GlyphMetrics getGlyphMetrics(i32 codepoint) const =0
virtual FontMetrics getMetrics() const =0
virtual i32 getKerning(i32 codepoint1, i32 codepoint2) const =0
virtual i32 getNumFonts() const =0
virtual GlyphBitmap renderGlyph(i32 codepoint, float scale) const =0
virtual ~Font() FL_NOEXCEPT=default
Font() FL_NOEXCEPT=default
static fl::shared_ptr< Font > load(fl::span< const u8 > fontData)
virtual float getScaleForPixelHeight(float pixelHeight) const =0
static fl::shared_ptr< Font > loadDefault()
FontRenderer(FontPtr font, float pixelHeight)
~FontRenderer() FL_NOEXCEPT
float pixelHeight() const
fl::shared_ptr< Font > FontPtr
Base definition for an LED controller.
u8 getPixel(i32 x, i32 y) const
GlyphBitmap() FL_NOEXCEPT