Cobbletext  0.2.0
Complex text layout and rendering engine
glyph_info.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "common.h"
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
17 
27  const uint8_t * image;
28 
34  uint32_t image_width;
35 
41  uint32_t image_height;
42 
48  int32_t image_offset_x;
49 
55  int32_t image_offset_y;
56 };
57 
58 #ifdef __cplusplus
59 }
60 #endif
CobbletextGlyphInfo
Glyph properties.
Definition: glyph_info.h:12
CobbletextGlyphInfo::image_offset_y
int32_t image_offset_y
Vertical offset when drawing the image.
Definition: glyph_info.h:55
CobbletextGlyphInfo::image_height
uint32_t image_height
Height of the coverage map.
Definition: glyph_info.h:41
CobbletextGlyphInfo::image
const uint8_t * image
Coverage map of the glyph.
Definition: glyph_info.h:27
CobbletextGlyphInfo::id
CobbletextGlyphID id
ID for this glyph.
Definition: glyph_info.h:16
common.h
CobbletextGlyphID
uint32_t CobbletextGlyphID
Unique glyph ID.
Definition: common.h:31
CobbletextGlyphInfo::image_offset_x
int32_t image_offset_x
Horizontal offset when drawing the image.
Definition: glyph_info.h:48
CobbletextGlyphInfo::image_width
uint32_t image_width
Width of the coverage map.
Definition: glyph_info.h:34