nomlib
Loading...
Searching...
No Matches
nom::BMFontKerningPair Struct Reference

The kerning information is used to adjust the distance between certain characters, e.g. some characters should be placed closer to each other than others. More...

#include <BMFont.hpp>

Public Attributes

int first_char_id = 0
 The first glyph identifier.
int second_char_id = 0
 The second glyph identifier.
int x_offset = 0
 How much the x position should be adjusted when drawing the second character immediately following the first.

Detailed Description

The kerning information is used to adjust the distance between certain characters, e.g. some characters should be placed closer to each other than others.

Definition at line 46 of file BMFont.hpp.

Member Data Documentation

◆ first_char_id

int nom::BMFontKerningPair::first_char_id = 0

The first glyph identifier.

Remarks
This is mapped to the kernings tag's 'first' field.

Definition at line 51 of file BMFont.hpp.

◆ second_char_id

int nom::BMFontKerningPair::second_char_id = 0

The second glyph identifier.

Remarks
This is mapped to the kernings tag's 'second' field.

Definition at line 56 of file BMFont.hpp.

◆ x_offset

int nom::BMFontKerningPair::x_offset = 0

How much the x position should be adjusted when drawing the second character immediately following the first.

Definition at line 60 of file BMFont.hpp.


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