Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
teeui::TextFace Class Reference

#include <font_rendering.h>

Collaboration diagram for teeui::TextFace:
Collaboration graph
[legend]

Public Member Functions

Error setCharSize (signed long char_size, unsigned int dpi)
 
Error setCharSizeInPix (pxs size)
 
GlyphIndex getCharIndex (unsigned long codePoint)
 
Error loadGlyph (GlyphIndex index)
 
Error renderGlyph ()
 
Error drawGlyph (const Vec2d< pxs > &pos, const PixelDrawer &drawPixel)
 
Vec2d< pxsadvance () const
 
Vec2d< pxskern (GlyphIndex previous) const
 
optional< Box< pxs > > getGlyphBBox () const
 

Private Attributes

friend TextContext
 
Handle< FT_Face > face_
 
bool hasKerning_ = false
 

Member Function Documentation

◆ advance()

Vec2d< pxs > teeui::TextFace::advance ( ) const

◆ drawGlyph()

Error teeui::TextFace::drawGlyph ( const Vec2d< pxs > &  pos,
const PixelDrawer drawPixel 
)
inline

◆ getCharIndex()

GlyphIndex teeui::TextFace::getCharIndex ( unsigned long  codePoint)

◆ getGlyphBBox()

optional< Box< pxs > > teeui::TextFace::getGlyphBBox ( ) const

◆ kern()

Vec2d< pxs > teeui::TextFace::kern ( GlyphIndex  previous) const

◆ loadGlyph()

Error teeui::TextFace::loadGlyph ( GlyphIndex  index)

◆ renderGlyph()

Error teeui::TextFace::renderGlyph ( )

◆ setCharSize()

Error teeui::TextFace::setCharSize ( signed long  char_size,
unsigned int  dpi 
)

◆ setCharSizeInPix()

Error teeui::TextFace::setCharSizeInPix ( pxs  size)

Member Data Documentation

◆ face_

Handle<FT_Face> teeui::TextFace::face_
private

◆ hasKerning_

bool teeui::TextFace::hasKerning_ = false
private

◆ TextContext

friend teeui::TextFace::TextContext
private

The documentation for this class was generated from the following files: