KiCad PCB EDA Suite
Loading...
Searching...
No Matches
gl_resources.cpp File Reference
#include <algorithm>
#include <iterator>
#include <limits>
#include <core/utf8.h>
#include "gl_resources.h"
#include "bitmap_font_img.c"
#include "bitmap_font_desc.c"

Go to the source code of this file.

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

FONT_INFO_TYPE KIGFX::BUILTIN_FONT::font_information
 
FONT_SPAN_TYPE KIGFX::BUILTIN_FONT::font_codepoint_spans []
 
FONT_GLYPH_TYPE KIGFX::BUILTIN_FONT::font_codepoint_infos []
 
static const int KIGFX::BUILTIN_FONT::bitmap_chars_count = 65535
 

Macro Definition Documentation

◆ BITMAP_FONT_USE_SPANS

#define BITMAP_FONT_USE_SPANS

Definition at line 28 of file gl_resources.cpp.