12#include "../fontcache.h"
16#include "../safeguards.h"
30 for (uint i = 0; i < num_def; i++) {
36 GrfMsg(1,
"LoadFontGlyph: Size {} is not supported, ignoring", size);
39 GrfMsg(7,
"LoadFontGlyph: Loading {} glyph(s) at 0x{:04X} for size {}", num_char, base_char, size);
41 for (uint c = 0; c < num_char; c++) {
61 for (uint i = 0; i < num_def; i++) {
72 GrfMsg(3,
"SkipAct12: Skipping {} sprites", _cur.
skip_sprites);
Class to read from a NewGRF file.
uint16_t ReadWord()
Read a single Word (16 bits).
uint8_t ReadByte()
Read a single byte (8 bits).
void SetUnicodeGlyph(FontSize size, char32_t key, SpriteID sprite)
Map a SpriteID to the font size and key.
FontSize
Available font sizes.
static void SkipAct12(ByteReader &buf)
Action 0x12 (SKIP)
static void LoadFontGlyph(ByteReader &buf)
Action 0x12.
NewGRF buffer reader definition.
NewGRF internal processing state.
bool LoadNextSprite(SpriteID load_index, SpriteFile &file, uint file_sprite_id)
Load a real or recolour sprite.
SpriteFile * file
File of currently processed GRF file.
uint32_t nfo_line
Currently processed pseudo sprite number in the GRF.
SpriteID spriteid
First available SpriteID for loading realsprites.
int skip_sprites
Number of pseudo sprites to skip before processing the next one. (-1 to skip to end of file)