KiCad PCB EDA Suite
Loading...
Searching...
No Matches
gl_resources.h File Reference
#include <gal/gal.h>
#include <math/vector2d.h>
#include <utility>

Go to the source code of this file.

Classes

struct  KIGFX::BUILTIN_FONT::FONT_IMAGE_TYPE
 
struct  KIGFX::BUILTIN_FONT::FONT_INFO_TYPE
 
struct  KIGFX::BUILTIN_FONT::FONT_SPAN_TYPE
 
struct  KIGFX::BUILTIN_FONT::FONT_GLYPH_TYPE
 
struct  KIGFX::BUILTIN_FONT::GLYPH_BOX
 Where a glyph's quad sits and what it samples, in font units, which are also atlas texels. More...
 

Namespaces

namespace  KIGFX
 The Cairo implementation of the graphics abstraction layer.
 
namespace  KIGFX::BUILTIN_FONT
 

Macros

#define BITMAP_FONT_USE_SPANS
 

Functions

const FONT_GLYPH_TYPE * KIGFX::BUILTIN_FONT::LookupGlyph (unsigned int aCodepoint)
 
unsigned int KIGFX::BUILTIN_FONT::GlyphCount ()
 The number of glyphs in the font, starting at LookupGlyph( '!
 
GLYPH_BOX KIGFX::BUILTIN_FONT::ComputeGlyphBox (const FONT_GLYPH_TYPE &aGlyph)
 
double KIGFX::BUILTIN_FONT::SpaceAdvance ()
 How far a space moves the pen.
 
std::pair< VECTOR2D, float > KIGFX::BUILTIN_FONT::ComputeBitmapTextSize (const UTF8 &aText)
 Size of a line of text in atlas units, and how far its glyphs sit above their lowest point.
 

Variables

GAL_API FONT_IMAGE_TYPE KIGFX::BUILTIN_FONT::font_image
 

Macro Definition Documentation

◆ BITMAP_FONT_USE_SPANS

#define BITMAP_FONT_USE_SPANS

Definition at line 29 of file gl_resources.h.