C# Class Fonet.Pdf.Gdi.GdiFont

A thin wrapper around a handle to a font
Mostra file Open project: Mimeo/Fo.Net Class Usage Examples

Public Methods

Method Description
CreateDesignFont ( string faceName, bool bold, bool italic, GdiDeviceContent dc ) : GdiFont

Creates a font whose height is equal to the negative value of the EM Square

CreateFont ( string faceName, int height, bool bold, bool italic ) : GdiFont

Creates a font based on the supplied typeface name and size.

Dispose ( ) : void
GdiFont ( IntPtr hFont, string faceName, int height ) : System

Class constructor

GetMetrics ( GdiDeviceContent dc ) : Fonet.Pdf.Gdi.GdiFontMetrics

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

CreateDesignFont() public static method

Creates a font whose height is equal to the negative value of the EM Square
public static CreateDesignFont ( string faceName, bool bold, bool italic, GdiDeviceContent dc ) : GdiFont
faceName string The typeface name of a font.
bold bool
italic bool
dc GdiDeviceContent
return GdiFont

CreateFont() public static method

Creates a font based on the supplied typeface name and size.
public static CreateFont ( string faceName, int height, bool bold, bool italic ) : GdiFont
faceName string The typeface name of a font.
height int /// The height, in logical units, of the font's character /// cell or character. ///
bold bool
italic bool
return GdiFont

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GdiFont() public method

Class constructor
public GdiFont ( IntPtr hFont, string faceName, int height ) : System
hFont System.IntPtr A handle to an existing font.
faceName string
height int
return System

GetMetrics() public method

public GetMetrics ( GdiDeviceContent dc ) : Fonet.Pdf.Gdi.GdiFontMetrics
dc GdiDeviceContent
return Fonet.Pdf.Gdi.GdiFontMetrics