Font Class

SFML.Net

Font Class
Font is the low-level class for loading and manipulating character fonts. This class is meant to be used by String2D
Inheritance Hierarchy
SystemObject  SFMLObjectBase
    SFML.GraphicsFont

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public class Font : ObjectBase
Public Class Font
	Inherits ObjectBase
public ref class Font : public ObjectBase
type Font =  
    class
        inherit ObjectBase
    end

The Font type exposes the following members.

Constructors
  NameDescription
Public methodFont(Byte)
Construct the font from a file in memory
Public methodFont(Stream)
Construct the font from a custom stream
Public methodFont(String)
Construct the font from a file
Public methodFont(Font)
Construct the font from another font
Top
Methods
  NameDescription
Protected methodDestroy
Handle the destruction of the object
(Overrides ObjectBaseDestroy(Boolean).)
Public methodDispose
Explicitely dispose the object
(Inherited from ObjectBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Dispose the object
(Inherited from ObjectBase.)
Public methodGetGlyph
Get a glyph in the font
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetInfo
Get the font information
Public methodGetKerning
Get the kerning offset between two glyphs
Public methodGetLineSpacing
Get spacing between two consecutive lines
Public methodGetTexture
Get the texture containing the glyphs of a given size
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUnderlinePosition
Get the position of the underline
Public methodGetUnderlineThickness
Get the thickness of the underline
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Provide a string describing the object
(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyCPointer
Access to the internal pointer of the object. For internal use only
(Inherited from ObjectBase.)
Top
See Also