TableSubstitutionRule.Load
TableSubstitutionRule Load method. Loads table substitution settings from XML file.
Load(string)
Loads table substitution settings from XML file.
public void Load(string fileName)
Parameter | Type | Description |
---|---|---|
fileName | String | Input file name. |
Examples
Shows how to save table substitution rules to file and load them back from the file.
FontSettings fontSettings = new FontSettings();
// Save table substitution rules to file.
fontSettings.SubstitutionSettings.TableSubstitution.Save(ArtifactsDir + "TableSubstitution.xml");
// Rules can be edited in XML file and then loaded back.
// ................
// Load table substitution rules from file.
fontSettings.SubstitutionSettings.TableSubstitution.Load(ArtifactsDir + "TableSubstitution.xml");
See Also
- class TableSubstitutionRule
- namespace Wordize.Fonts
- assembly Wordize
Load(Stream)
Loads table substitution settings from XML stream.
public void Load(Stream stream)
Parameter | Type | Description |
---|---|---|
stream | Stream | Input stream. |
Examples
Shows how to save table substitution rules to stream and load them back from the stream.
FontSettings fontSettings = new FontSettings();
// Save table substitution rules to stream.
using (Stream tableSubstitutionStream = File.Create(ArtifactsDir + "TableSubstitutionStream.xml"))
fontSettings.SubstitutionSettings.TableSubstitution.Save(tableSubstitutionStream);
// Rules can be edited in XML file and then loaded back.
// ................
// Load table substitution rules from stream.
using (Stream tableSubstitutionStream = File.OpenRead(ArtifactsDir + "TableSubstitutionStream.xml"))
fontSettings.SubstitutionSettings.TableSubstitution.Load(tableSubstitutionStream);
See Also
- class TableSubstitutionRule
- namespace Wordize.Fonts
- assembly Wordize