Altsoft FTMasterConnector Class Library

FTMasterConnector.Convert Method (String, String, FontFormat)

Converts font into specified format.

public static bool Convert(
   string sPathToInputFile,
   string sPathToOutputFile,
   FontFormat targetFormat
);

Parameters

sPathToInputFile
Path to the input font file.
sPathToOutputFile
Path to the resulting font file.
targetFormat
Target format.

Return Value

true if the conversion was successful

Example

public static bool ConvertFontIntoTrueType()
{
    bool bIsOK = FTMasterConnector.Convert( "Type42", "TrueType.otf", Altsoft.FTMaster.FTMasterConnector.FontFormat.TrueType );
    return bIsOK;
}

See Also

FTMasterConnector Class | Altsoft.FTMaster Namespace | FTMasterConnector.Convert Overload List