GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Data Fields
gp_text_style Struct Reference

A text style. More...

#include <gp_text_style.h>

Collaboration diagram for gp_text_style:
Collaboration graph
[legend]

Data Fields

const gp_font_facefont
 A font face.
 
int pixel_xspace
 Spacing between glyph pixels.
 
int pixel_yspace
 Spacing between glyph pixels.
 
int pixel_xmul
 An x multiplier of glyps pixels i.e. width (1 is default).
 
int pixel_ymul
 An y multiplier of glyps pixels height (1 is default).
 
int char_xspace
 Extra spacing (in pixels) between characters.
 

Detailed Description

A text style.

This structure describes how a text should be rendered. It includes a font, and a few transformations.

Default font

Default font xspace=1, yspace=2, xmul=2, ymul=2

Default font xspace=-1, yspace=-1, xmul=2, ymul=2 (embolding)

Definition at line 39 of file gp_text_style.h.

Field Documentation

◆ pixel_xspace

int gp_text_style::pixel_xspace

Spacing between glyph pixels.

Default spacing is 0 i.e. no spacing.

Definition at line 48 of file gp_text_style.h.

Referenced by gp_text_style_embold(), and gp_text_style_normal().

◆ pixel_yspace

int gp_text_style::pixel_yspace

Spacing between glyph pixels.

Default spacing is 0 i.e. no spacing.

Definition at line 54 of file gp_text_style.h.

Referenced by gp_text_style_embold(), and gp_text_style_normal().


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