KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIGFX::BUILTIN_FONT::GLYPH_BOX Struct Reference

Where a glyph's quad sits and what it samples, in font units, which are also atlas texels. More...

#include <gl_resources.h>

Public Attributes

float x
 
float y
 corner of the quad from the pen position
 
float w
 
float h
 size of the quad and of its cell in the atlas
 
float atlasX
 
float atlasY
 corner of the cell in the atlas, inside its smoothing border
 

Detailed Description

Where a glyph's quad sits and what it samples, in font units, which are also atlas texels.

Definition at line 71 of file gl_resources.h.

Member Data Documentation

◆ atlasX

float KIGFX::BUILTIN_FONT::GLYPH_BOX::atlasX

◆ atlasY

float KIGFX::BUILTIN_FONT::GLYPH_BOX::atlasY

corner of the cell in the atlas, inside its smoothing border

Definition at line 75 of file gl_resources.h.

Referenced by KIGFX::BUILTIN_FONT::ComputeGlyphBox(), and KIGFX::OPENGL_GAL::drawBitmapChar().

◆ h

float KIGFX::BUILTIN_FONT::GLYPH_BOX::h

size of the quad and of its cell in the atlas

Definition at line 74 of file gl_resources.h.

Referenced by KIGFX::BUILTIN_FONT::ComputeGlyphBox(), and KIGFX::OPENGL_GAL::drawBitmapChar().

◆ w

float KIGFX::BUILTIN_FONT::GLYPH_BOX::w

◆ x

float KIGFX::BUILTIN_FONT::GLYPH_BOX::x

◆ y

float KIGFX::BUILTIN_FONT::GLYPH_BOX::y

corner of the quad from the pen position

Definition at line 73 of file gl_resources.h.

Referenced by KIGFX::BUILTIN_FONT::ComputeGlyphBox(), and KIGFX::OPENGL_GAL::drawBitmapChar().


The documentation for this struct was generated from the following file: