Click or drag to resize

GraphicsFont Class

A font that is suitable for use with the TextBatchPrimitive. For best performance, avoid creating duplicate font objects. Instead assign the same font object to several text batch primitives.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.GraphicsGraphicsFont

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public sealed class GraphicsFont : IDisposable

The GraphicsFont type exposes the following members.

Constructors
  NameDescription
Public methodGraphicsFont(Font)
Initializes a graphics font using a Font object.
Public methodGraphicsFont(Font, Boolean)
Initializes a graphics font using a Font object.
Public methodGraphicsFont(String, Int32)
Initializes a graphics font with the typeface name and size.
Public methodGraphicsFont(String, Int32, FontStyle, Boolean)
Initializes a graphics font with the given arguments.
Top
Properties
  NameDescription
Public propertyAntialias
Gets a value that indicates whether this font is antialiased.
Public propertyBold
Gets a value that indicates whether this font is bold.
Public propertyItalic
Gets a value that indicates whether this font is italic.
Public propertyName
Gets the typeface name of the font.
Public propertyOutline
Gets a value that indicates whether this font has an outline around its characters.
Public propertySize
Gets the size of the font.
Public propertyStrikeout
Gets a value that indicates whether this font has a horizontal line through its characters.
Public propertyStyle
Gets the FontStyle enumeration that contains the style for this font. This does not include the Outline property.
Public propertyUnderline
Gets a value that indicates whether this font is underlined.
Top
Methods
  NameDescription
Public methodDispose
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also