Skip to content

Fonts_Z

widberg edited this page Oct 12, 2023 · 15 revisions

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

Home
FAQ

For FMTK Users and Mod Developers

Read the Docs

For FMTK Developers

Asobo BigFile Format Specification
Asobo Classes
      Animation_Z
      Binary_Z
      Bitmap_Z
      Camera_Z
      CollisionVol_Z
      Fonts_Z
      GameObj_Z
      GenWorld_Z
      GwRoad_Z
      Keyframer*_Z
      Light_Z
      LightData_Z
      Lod_Z
      LodData_Z
      Material_Z
      MaterialAnim_Z
      MaterialObj_Z
      Mesh_Z
      MeshData_Z
      Node_Z
      Omni_Z
      Particles_Z
      ParticlesData_Z
      RotShape_Z
      RotShapeData_Z
      Rtc_Z
      Skel_Z
      Skin_Z
      Sound_Z
      Spline_Z
      SplineGraph_Z
      Surface_Z
      SurfaceDatas_Z
      UserDefine_Z
      Warp_Z
      World_Z
      WorldRef_Z
Asobo File Format Idioms
Asobo CRC32
Asobo LZ Compression
Asobo Arithmetic Coding Compression
Asobo Save Game File Format Specification
Asobo Audio Formats
TotemTech/ToonTech/Zouna/ACE/BSSTech/Opal Timeline
Zouna Modding Resources
Miscellaneous

Clone this wiki locally