Contains structures and functions for working with in-game text archives.
More...
|
| using | IndexedString = std::vector<u16> |
| | A string consisting of special codes and indices into the character lookup table.
|
|
| std::vector< std::string > | Convert (const Text &text, const std::unordered_map< u16, std::string_view > &replacements=kSpecialCodeToString) |
| | Converts an in-game text archive to a vector of UTF-8 encoded strings.
|
| Text | Convert (const std::vector< std::string > &stext, const std::unordered_map< u16, std::string_view > &replacements=kSpecialCodeToString, const std::vector< u16 > &characters={}) |
| | Converts a vector of UTF-8 encoded strings to an in-game text archive.
|
| bool | IsOfType (BufferView buffer) |
| | Tests if the provided file is a text archive.
|
| Text | Import (BufferView buffer) |
| | Parses a binary file and converts it to a Text object.
|
| Buffer | Export (const Text &text) |
| | Converts a text archive to a binary file representation.
|
| BitmapFont | GenerateBitmapFont (Text &text, const std::filesystem::path &ttf_font_path, const BitmapFontParams ¶ms={}) |
| | Generates a bitmap font from a TrueType font file.
|
| std::string | GenerateFNT (const Text &text, const std::vector< u8 > &advance_width, const std::vector< STexture > &bitmaps, int columns=-1) |
| | Generates a BMFont .fnt file.
|
Contains structures and functions for working with in-game text archives.
- See also
- nnl::text::Text
-
nnl::text::IsOfType
-
nnl::text::Import
-
nnl::text::Export
-
nnl::text::Convert