An object that can look up glyph locations within the GlyphAtlas for a particular typeface.
More...
#include <glyph_atlas.h>
An object that can look up glyph locations within the GlyphAtlas for a particular typeface.
Definition at line 269 of file glyph_atlas.h.
◆ FontGlyphAtlas() [1/2]
impeller::FontGlyphAtlas::FontGlyphAtlas |
( |
| ) |
|
|
default |
◆ FontGlyphAtlas() [2/2]
◆ AppendGlyph()
Append the frame bounds of a glyph to this atlas.
This may indicate a placeholder glyph location to be replaced
at a later time, as indicated by FrameBounds.placeholder.
Definition at line 140 of file glyph_atlas.cc.
142 positions_[glyph] = frame_bounds;
◆ FindGlyphBounds()
Find the location of a glyph in the atlas.
- Parameters
-
- Returns
- The location of the glyph in the atlas.
std::nullopt
if the glyph is not in the atlas.
Definition at line 131 of file glyph_atlas.cc.
133 const auto& found = positions_.find(glyph);
134 if (found == positions_.end()) {
137 return found->second;
Referenced by impeller::TextContents::ComputeVertexData().
◆ GlyphAtlas
The documentation for this class was generated from the following files: