Cobbletext  0.2.0
Complex text layout and rendering engine
Public Attributes | List of all members
CobbletextGlyphInfo Struct Reference

Glyph properties. More...

#include <glyph_info.h>

Public Attributes

CobbletextGlyphID id
 ID for this glyph. More...
 
const uint8_t * image
 Coverage map of the glyph. More...
 
uint32_t image_width
 Width of the coverage map. More...
 
uint32_t image_height
 Height of the coverage map. More...
 
int32_t image_offset_x
 Horizontal offset when drawing the image. More...
 
int32_t image_offset_y
 Vertical offset when drawing the image. More...
 

Detailed Description

Glyph properties.

Member Data Documentation

◆ id

CobbletextGlyphID CobbletextGlyphInfo::id

ID for this glyph.

◆ image

const uint8_t* CobbletextGlyphInfo::image

Coverage map of the glyph.

0 is transparent, 255 is opaque.

The value is null if the glyph has not yet been rasterized.

  • May be null

◆ image_height

uint32_t CobbletextGlyphInfo::image_height

Height of the coverage map.

  • Value is 0 if no #image

◆ image_offset_x

int32_t CobbletextGlyphInfo::image_offset_x

Horizontal offset when drawing the image.

Additive to your pen position.

◆ image_offset_y

int32_t CobbletextGlyphInfo::image_offset_y

Vertical offset when drawing the image.

Additive to your pen position.

◆ image_width

uint32_t CobbletextGlyphInfo::image_width

Width of the coverage map.

  • Value is 0 if no #image

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