private void ImportWFNFont(string fileName, string newTTFName, string newWFNName)
{
try
{
if (File.Exists(newTTFName))
{
Factory.AGSEditor.DeleteFileOnDiskAndSourceControl(newTTFName);
}
Factory.NativeProxy.ImportSCIFont(fileName, _item.ID);
_item.PointSize = 0;
_item.SourceFilename = Utilities.GetRelativeToProjectPath(fileName);
}
catch (AGSEditorException ex)
{
Factory.GUIController.ShowMessage("Unable to import the font.\n\n" + ex.Message, MessageBoxIcon.Warning);
}
}