C# Class Fonet.Pdf.Gdi.GdiFont

A thin wrapper around a handle to a font
Afficher le fichier Open project: Mimeo/Fo.Net Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

CreateDesignFont() public static méthode

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
Résultat GdiFont

CreateFont() public static méthode

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
Résultat GdiFont

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GdiFont() public méthode

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

GetMetrics() public méthode

public GetMetrics ( GdiDeviceContent dc ) : Fonet.Pdf.Gdi.GdiFontMetrics
dc GdiDeviceContent
Résultat Fonet.Pdf.Gdi.GdiFontMetrics