|
Ion
|
A grid representing a rendered glyph, with each grid pixel representing pixel coverage in the range (0,1). More...
#include "font.h"

Public Member Functions | |
| GlyphGrid () | |
| GlyphGrid (size_t width, size_t height) | |
| bool | IsZeroSize () const |
| Returns true if glyph x- or y-size is zero. More... | |
Public Attributes | |
| base::Array2< double > | pixels |
| bool | is_sdf |
| When a Font is set up for rendering, the pixels are replaced with a signed-distance field (SDF). More... | |
A grid representing a rendered glyph, with each grid pixel representing pixel coverage in the range (0,1).
This is used internally to create signed-distance field images for a font.
| bool ion::text::Font::GlyphGrid::IsZeroSize | ( | ) | const |
Returns true if glyph x- or y-size is zero.
Definition at line 37 of file font.cc.
Referenced by ion::text::Font::FilterGlyphs().
| bool ion::text::Font::GlyphGrid::is_sdf |
When a Font is set up for rendering, the pixels are replaced with a signed-distance field (SDF).
This flag is set to true if the grid has SDF data (vs. the original rendered data).
Definition at line 61 of file font.h.
Referenced by ion::text::Font::CacheSdfGrid(), and ion::text::Font::CacheSdfGrids().
| base::Array2<double> ion::text::Font::GlyphGrid::pixels |
Definition at line 53 of file font.h.
Referenced by ion::text::Font::CacheSdfGrid(), and ion::text::Font::CacheSdfGrids().