bw logo

Chapter 4. File Format Changes

Table of Contents

4.1. XML Format
4.2. Font Format

This chapter describes changes made to BigWorld Technology's file formats between this version and the previous version.

4.1. XML Format

The DataSection.asWideString API now expects a UTF-8 string and not a Base64 string. This change is automatically done by Asset Processor to all of the GUI files. Customers which are using wide strings in other XML files and which are using this API to parse these XML files should convert their string from Base64 to UTF-8. XML values using the "!" prefix and an ASCII string will also be converted.

4.2. Font Format

The font system has been changed to utilise a glyph-caching system, rather than baking entire font sets out to a texture map. This has been added as part of internationalisation support. In particular, the Font files no longer need a <generated> section, and they no longer store their .dds files on disk.

A new rule has been added to the Asset Processor; running this will change your font files to the new format, thereby enabling the glyph cache for all fonts.

If you have any fonts that you do not want changed, for example if you are using artist-modified font textures, then add the names of the font files you wish to exclude from the process to bigworld/tools/misc/asset_processor/FontGlyphCacheUpdate.py

Once the AssetProcessor has been run, you will be able to see in the output log which fonts were modified. You can then delete their associated .dds files from your source control repository.