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.

Afficher le fichier Open project: HinTak/Font-Validator Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public CloseXmlReportFile ( ) : void
Résultat void

CopyXslFile() public static méthode

public static CopyXslFile ( string sReportFile ) : void
sReportFile string
Résultat void

Driver() public méthode

public Driver ( DriverCallbacks cbs ) : System.Windows.Forms
cbs DriverCallbacks
Résultat System.Windows.Forms

OnValidateEvent() public méthode

public OnValidateEvent ( OTFontFileVal.Validator e, object oParam ) : void
e OTFontFileVal.Validator
oParam object
Résultat void

OpenXmlReportFile() public méthode

public OpenXmlReportFile ( string sReportFile, string sFontFile ) : void
sReportFile string
sFontFile string
Résultat void

RunValidation() public méthode

public RunValidation ( OTFontFileVal.Validator v, string fontList ) : int
v OTFontFileVal.Validator
fontList string
Résultat int

RunValidation() public méthode

public RunValidation ( OTFontFileVal.Validator v, string fpath, SafeFileHandle hFile ) : int
v OTFontFileVal.Validator
fpath string
hFile SafeFileHandle
Résultat int

ValidatorCallback() public méthode

public ValidatorCallback ( NS_ValCommon.ValInfoBasic viBasic ) : void
viBasic NS_ValCommon.ValInfoBasic
Résultat void