Class BmfcConfigReader
- Namespace
- KernSmith
- Assembly
- KernSmith.dll
Reads BMFont/AngelCode .bmfc configuration files (flat key=value format) into BmfcConfig.
This reader is BMFont-specific; to read either a .bmfc or a libGDX Hiero .hiero file with
automatic content-based format detection, use ReadConfig(string) instead.
public static class BmfcConfigReader
- Inheritance
-
BmfcConfigReader
- Inherited Members
Methods
Parse(string)
Parses .bmfc content from a string and returns a BmfcConfig. Relative paths are not resolved since there is no file context.
public static BmfcConfig Parse(string content)
Parameters
contentstringThe .bmfc file content.
Returns
- BmfcConfig
A BmfcConfig containing parsed options and font source info.
Read(string)
Reads a .bmfc file from disk and returns a BmfcConfig. Relative paths in the config (fontFile, outputPath) are resolved against the config file's directory.
public static BmfcConfig Read(string filePath)
Parameters
filePathstringPath to the .bmfc file.
Returns
- BmfcConfig
A BmfcConfig containing parsed options and font source info.
Exceptions
- FileNotFoundException
Thrown when
filePathdoes not exist.