Table of Contents

Class HieroConfigReader

Namespace
KernSmith
Assembly
KernSmith.dll

Reads Hiero .hiero configuration files (flat key=value format) into BmfcConfig. Maps Hiero properties and effect blocks onto KernSmith FontGeneratorOptions.

public static class HieroConfigReader
Inheritance
HieroConfigReader
Inherited Members

Methods

Parse(string)

Parses .hiero 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

content string

The .hiero file content.

Returns

BmfcConfig

A BmfcConfig containing parsed options and font source info.

Read(string)

Reads a .hiero file from disk and returns a BmfcConfig. A relative font2.file path is resolved against the config file's directory.

public static BmfcConfig Read(string filePath)

Parameters

filePath string

Path to the .hiero file.

Returns

BmfcConfig

A BmfcConfig containing parsed options and font source info.

Exceptions

FileNotFoundException

Thrown when filePath does not exist.