LoadCustomFamilyData() public method

Replaces the Fonts custom font family with a new dataset that has been retrieved from file.
public LoadCustomFamilyData ( string path = null ) : void
path string The path of the file from which to retrieve the new font family data.
return void
コード例 #1
0
ファイル: FontFileImporter.cs プロジェクト: gitMaxim/duality
 public void ImportFile(string srcFile, string targetName, string targetDir)
 {
     string[] output = this.GetOutputFiles(srcFile, targetName, targetDir);
     Font res = new Font();
     res.LoadCustomFamilyData(srcFile);
     res.ReloadData();
     res.Save(output[0]);
 }