Skip to Content
The Alchemy Project

include/graphics/glyph.h

The main font's glyphs, and the palette and buffers icons are built in.

Included by field_actors.c, field_engine_item_display.c, script_commands_actor_commands.c, menu_internal.h, dehkan_plateau.c, gabomba_statue_chamber.c, jupiter_lighthouse_aerie_beacon.c, kandorean_temple.c, kibombo.c, lemurian_ship_deck.c, mars_lighthouse_aerie.c, mars_lighthouse_star_room.c, settlements.c, shaman_village.c, yampi_desert.c, glyph_arm.c and window_internal.h.

Structures

NameDescription
structICON_PALETTEA compact palette shared by a selection's command icons: the slot each icon colour was given, or GLYPH_PALETTE_SLOT_FREE for none yet, and how many slots are taken.
structGLYPHA character of the text font: its width and its rows of pixels.
structICON_TRANSFERThe buffers an icon or a portrait is decoded through, in HEAP_SLOT_ICON_TRANSFER for one build: mnIconDecode unpacks encoded into input, then expands input into tiles.

Macros

NameDescription
#defineGLYPH_PALETTE_SLOT_FREE 255ICON_PALETTE.slot of an icon colour given no slot yet.
#defineICON_TILE_BYTES (16 * 16 / 2)A 16-pixel square icon's tiles at 4 bits a pixel, what VRAM takes of ICON_TRANSFER.tiles for an item, Psynergy or status icon.

Enumerations

NameDescription
enumanonymous enum { FONT_GLYPH_ROWS }A glyph's height in rows of pixels: 12 in Japanese.
enumanonymous enum { FONT_GLYPH_ROWS }A glyph's height in rows of pixels: 15 outside Japanese.

Variables

NameDescription
extern const GLYPHFontGlyphs []The main font, from character code 32: its glyphs in code order.

Description

The main font's glyphs, and the palette and buffers icons are built in.

Macros in detail

GLYPH_PALETTE_SLOT_FREE

#define GLYPH_PALETTE_SLOT_FREE 255

ICON_PALETTE.slot of an icon colour given no slot yet.

Referenced by mnBattleCommandRowLoadIconTiles() and mnBattleCommandRowRun().

Definition at line 25 of file glyph.h.

ICON_TILE_BYTES

#define ICON_TILE_BYTES (16 * 16 / 2)

A 16-pixel square icon's tiles at 4 bits a pixel, what VRAM takes of ICON_TRANSFER.tiles for an item, Psynergy or status icon.

Referenced by fdActorSetItemIcon(), fdActorShowItemIconById(), fdItemDisplayShowItem(), fdItemDisplayShowItemInFront(), mnCursorCreate(), mnIconCreateHandCursor(), mnLoadDjinnArrows(), mnLoadStatArrows(), mnNameCaretLoadIntoSlot(), mnNameEntryEditMemberName(), mnOpenBackdropScreen(), mnPointingHandLoadIntoFreeSlot(), mnPointingHandLoadIntoSlot(), scDehkanPlateauCreatePoundCube(), scGabombaStatueChamberWhereIsTheOrb(), scJupiterLighthouseCastTheJupiterStar(), scKandoreanTempleCreateLashPebble(), scKibomboCreateBlackCrystal(), scMarsLighthouseAerieLightBeacon(), scMarsLighthouseStarRoomCreateMarsStar(), scMarsLighthouseStarRoomLoadMarsStarIcon(), scSettlementsSetUpKaltIsland(), scShamanVillageCreateRodIcon() and scYampiDesertCreateScoopGem().

Definition at line 73 of file glyph.h.

Enumerations in detail

anonymous enum

enum { FONT_GLYPH_ROWS }

A glyph's height in rows of pixels: 12 in Japanese.

EnumeratorValueDescription
FONT_GLYPH_ROWS12

Definition at line 12 of file glyph.h.

anonymous enum

enum { FONT_GLYPH_ROWS }

A glyph's height in rows of pixels: 15 outside Japanese.

EnumeratorValueDescription
FONT_GLYPH_ROWS15

Definition at line 18 of file glyph.h.

Variables in detail

FontGlyphs

extern const GLYPH FontGlyphs[]

The main font, from character code 32: its glyphs in code order.

Referenced by mnGlyphDrawArm(), mnMessageType(), mnTextDrawGlyphPair() and mnTextDrawGlyphToCanvas().

Definition at line 50 of file glyph.h.