mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2024-12-28 04:23:36 +01:00
provide new line-distance property for built-in fonts
This commit is contained in:
parent
aba6c280b6
commit
ccdd4c227c
2 changed files with 9 additions and 3 deletions
|
@ -289,10 +289,14 @@ typedef struct
|
|||
/* Number of total glyphs */
|
||||
uint32_t glyph_count;
|
||||
|
||||
/* Character spacing (usually 1) */
|
||||
uint8_t char_spacing;
|
||||
/* Character spacing (usually 1) */
|
||||
uint8_t char_spacing;
|
||||
/* Distance between the y positions for two consecutive lines. This is
|
||||
an informative metric for text wrapping tools, not used by dtext()
|
||||
and other standard functions that always write a single line. */
|
||||
uint8_t line_distance;
|
||||
|
||||
uint :24;
|
||||
uint :16;
|
||||
|
||||
struct {
|
||||
/* Unicode point of first character in block */
|
||||
|
|
|
@ -5,6 +5,7 @@ font5x7.png:
|
|||
grid.size: 5x7
|
||||
grid.padding: 1
|
||||
grid.border: 0
|
||||
line-distance: 8
|
||||
|
||||
font8x9.png:
|
||||
name: gint_font8x9
|
||||
|
@ -15,3 +16,4 @@ font8x9.png:
|
|||
grid.border: 0
|
||||
proportional: true
|
||||
height: 9
|
||||
line-distance: 14
|
||||
|
|
Loading…
Reference in a new issue