C# Class Tsukikage.WindowsUtil.FontFileLoader.Win32Font

Datei anzeigen Open project: ttsuki/ttsuki

Public Methods

Method Description
LoadFontFile ( string path ) : bool
LoadFontMem ( byte fontImage ) : IntPtr
UnloadFontFile ( string path ) : bool
UnloadFontMem ( IntPtr fontHandle ) : bool

Private Methods

Method Description
AddFontMemResourceEx ( IntPtr pbFont, int cbFont, IntPtr pdv, int &pcFonts ) : IntPtr
AddFontResource ( string lpszFilename ) : int
BroadcastMessage ( int message, IntPtr wparam, IntPtr lparam ) : void
RemoveFontMemResourceEx ( IntPtr fh ) : int
RemoveFontResource ( string lpszFilename ) : int
SendMessageTimeout ( IntPtr hwnd, int msg, IntPtr wparam, IntPtr lparam, int fuFlags, int uTimeout, int &lpdwResult ) : IntPtr

Method Details

LoadFontFile() public static method

public static LoadFontFile ( string path ) : bool
path string
return bool

LoadFontMem() public static method

public static LoadFontMem ( byte fontImage ) : IntPtr
fontImage byte
return System.IntPtr

UnloadFontFile() public static method

public static UnloadFontFile ( string path ) : bool
path string
return bool

UnloadFontMem() public static method

public static UnloadFontMem ( IntPtr fontHandle ) : bool
fontHandle System.IntPtr
return bool