Class BmfcConfigWriter
- Namespace
- KernSmith
- Assembly
- KernSmith.dll
Serializes BmfcConfig to the standard BMFont/AngelCode .bmfc flat key=value format.
To write the libGDX Hiero .hiero format use HieroConfigWriter, or let
WriteConfig(BmfcConfig, string) pick the writer based on the file extension.
public static class BmfcConfigWriter
- Inheritance
-
BmfcConfigWriter
- Inherited Members
Methods
Write(BmfcConfig)
Writes a BmfcConfig as a .bmfc format string.
public static string Write(BmfcConfig config)
Parameters
configBmfcConfigThe configuration to serialize.
Returns
- string
The .bmfc file content as a string.
WriteToFile(BmfcConfig, string)
Writes a BmfcConfig to a .bmfc file on disk. Font file and output paths are written as relative paths when possible.
public static void WriteToFile(BmfcConfig config, string filePath)
Parameters
configBmfcConfigThe configuration to serialize.
filePathstringThe destination file path.