20#ifndef GAL_OPENGL_RESOURCES_H___
21#define GAL_OPENGL_RESOURCES_H___
29#define BITMAP_FONT_USE_SPANS
33 namespace BUILTIN_FONT {
41 unsigned char pixels[1024 * 1107 * 3];
An 8 bit string that is assuredly encoded in UTF8, and supplies special conversion support to and fro...
unsigned int GlyphCount()
The number of glyphs in the font, starting at LookupGlyph( '!
std::pair< VECTOR2D, float > ComputeBitmapTextSize(const UTF8 &aText)
Size of a line of text in atlas units, and how far its glyphs sit above their lowest point.
double SpaceAdvance()
How far a space moves the pen.
const FONT_GLYPH_TYPE * LookupGlyph(unsigned int aCodepoint)
FONT_INFO_TYPE font_information
GAL_API FONT_IMAGE_TYPE font_image
GLYPH_BOX ComputeGlyphBox(const FONT_GLYPH_TYPE &aGlyph)
The Cairo implementation of the graphics abstraction layer.
unsigned char pixels[1024 *1107 *3]
unsigned int smooth_pixels
Where a glyph's quad sits and what it samples, in font units, which are also atlas texels.
float h
size of the quad and of its cell in the atlas
float atlasY
corner of the cell in the atlas, inside its smoothing border
float y
corner of the quad from the pen position