An object that can look up glyph locations within the GlyphAtlas for a particular typeface. More...
#include <glyph_atlas.h>
Public Member Functions | |
| FontGlyphAtlas ()=default | |
| std::optional< std::pair< Rect, Rect > > | FindGlyphBounds (const SubpixelGlyph &glyph) const |
| Find the location of a glyph in the atlas. More... | |
Friends | |
| class | GlyphAtlas |
An object that can look up glyph locations within the GlyphAtlas for a particular typeface.
Definition at line 204 of file glyph_atlas.h.
|
default |
| std::optional< std::pair< Rect, Rect > > impeller::FontGlyphAtlas::FindGlyphBounds | ( | const SubpixelGlyph & | glyph | ) | const |
Find the location of a glyph in the atlas.
| [in] | glyph | The glyph |
std::nullopt if the glyph is not in the atlas. Definition at line 119 of file glyph_atlas.cc.
Referenced by impeller::CollectNewGlyphs(), impeller::TypographerContextSTB::CreateGlyphAtlas(), and impeller::TextContents::Render().
|
friend |
Definition at line 220 of file glyph_atlas.h.