Flutter Engine
The Flutter Engine
|
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 200 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.
|
friend |
Definition at line 216 of file glyph_atlas.h.