Fonts_Z - widberg/fmtk GitHub Wiki

ImZouna Fonts_Z

The zouna_utf8.py script can convert between UTF-8 bytes and Zouna font character IDs.

The SamuraiOndo/fonts_zeditor repository can edit font files.

struct Character {
    /// Index in the material_names table of the material with this character
    u32 material_index;
    ///  Distance below the baseline to place this character
    /// The higher the value the lower the character
    f32 descent;
    Vec2f top_left_corner;
    Vec2f bottom_right_corner;
};

/// ID is the UTF-8 representation of the character stored in reverse order with null bytes as padding
/// See https://gist.github.com/widberg/64a19a2708aefd8861a0b268df54c3ed#file-zouna_utf8-py to convert between ids and UTF-8
using CharacterID = u32;

struct Fonts_Z : ResourceObject_Z {
    Map_Z<CharacterID, Character> characters;
    DynArray_Z<Name_Z> material_names;
};

Fonts included in the game file include FUELETICA

data0
data1
data3
data5
data8

and another font

data2
data4
data6
data7

See also: Debug Font and FUELETICA

⚠️ **GitHub.com Fallback** ⚠️