C# Class OTFontFileVal.Driver

In order that the command line interface and the GUI app have the same behavior, this class has been factored out and should be used by both front ends.

Behavior specific to a font end, for example, displaying messages in a GUI window, should be handled via callbacks through an interface passed in here.

Show file Open project: HinTak/Font-Validator Class Usage Examples

Public Methods

Method Description
CloseXmlReportFile ( ) : void
CopyXslFile ( string sReportFile ) : void
Driver ( DriverCallbacks cbs ) : System.Windows.Forms
OnValidateEvent ( OTFontFileVal.Validator e, object oParam ) : void
OpenXmlReportFile ( string sReportFile, string sFontFile ) : void
RunValidation ( OTFontFileVal.Validator v, string fontList ) : int
RunValidation ( OTFontFileVal.Validator v, string fpath, SafeFileHandle hFile ) : int
ValidatorCallback ( NS_ValCommon.ValInfoBasic viBasic ) : void

Private Methods

Method Description
MakeCodeFriendlyTag ( OTFontFile.OTTag tag ) : OTFontFile.OTTag
OnBeginTable ( OTFontFile.DirectoryEntry de ) : void
OnEndElement ( ) : void
OnFontBegin ( uint fontIndex ) : void
OnFontParsed ( OTFontFile.OTFont f ) : void
OnRasterTestBegin ( string element, string label ) : void
ValInfoTypeToString ( OTFontFileVal.ValidationInfo vt ) : string
ValidateFont ( OTFontFileVal.Validator v, string fpath, SafeFileHandle hFile, int i, int n ) : int

Method Details

CloseXmlReportFile() public method

public CloseXmlReportFile ( ) : void
return void

CopyXslFile() public static method

public static CopyXslFile ( string sReportFile ) : void
sReportFile string
return void

Driver() public method

public Driver ( DriverCallbacks cbs ) : System.Windows.Forms
cbs DriverCallbacks
return System.Windows.Forms

OnValidateEvent() public method

public OnValidateEvent ( OTFontFileVal.Validator e, object oParam ) : void
e OTFontFileVal.Validator
oParam object
return void

OpenXmlReportFile() public method

public OpenXmlReportFile ( string sReportFile, string sFontFile ) : void
sReportFile string
sFontFile string
return void

RunValidation() public method

public RunValidation ( OTFontFileVal.Validator v, string fontList ) : int
v OTFontFileVal.Validator
fontList string
return int

RunValidation() public method

public RunValidation ( OTFontFileVal.Validator v, string fpath, SafeFileHandle hFile ) : int
v OTFontFileVal.Validator
fpath string
hFile SafeFileHandle
return int

ValidatorCallback() public method

public ValidatorCallback ( NS_ValCommon.ValInfoBasic viBasic ) : void
viBasic NS_ValCommon.ValInfoBasic
return void