C# Class JarrettVance.ChapterTools.FontHelper

Mostra file Open project: jarrettv/ChapterGrabber

Public Methods

Method Description
Create ( string family, float emSize, FontStyle style = FontStyle.Regular, GraphicsUnit unit = GraphicsUnit.Pixel ) : Font
GetAllFamilies ( ) : System.Drawing.FontFamily[]
GetFamily ( string family ) : FontFamily
RegisterFont ( byte font ) : void
RegisterFont ( string fontFilePath ) : void

Private Methods

Method Description
FontHelper ( ) : System

Method Details

Create() public static method

public static Create ( string family, float emSize, FontStyle style = FontStyle.Regular, GraphicsUnit unit = GraphicsUnit.Pixel ) : Font
family string
emSize float
style FontStyle
unit GraphicsUnit
return System.Drawing.Font

GetAllFamilies() public static method

public static GetAllFamilies ( ) : System.Drawing.FontFamily[]
return System.Drawing.FontFamily[]

GetFamily() public static method

public static GetFamily ( string family ) : FontFamily
family string
return System.Drawing.FontFamily

RegisterFont() public static method

public static RegisterFont ( byte font ) : void
font byte
return void

RegisterFont() public static method

public static RegisterFont ( string fontFilePath ) : void
fontFilePath string
return void