Xceed Words for .NET v5.1 Documentation
Xceed.Drawing.NET Assembly / Xceed.Drawing Namespace / Font Class
Members


In This Topic
    Font Class
    In This Topic
     Encapsulates a SkiaSharp.SKFont in .NET5+ or a System.Drawing.Font in .NET Framework.
    Syntax
    'Declaration
     
    Public Class Font 
    'Usage
     
    Dim instance As Font
    public class Font 
    Inheritance Hierarchy

    System.Object
       Xceed.Drawing.Font

    Public Constructors
     NameDescription
    Public ConstructorOverloaded. Creates a new Font object from specific values.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets the Font's name.  
    Public PropertyGets the Font's size.  
    Public PropertyGets the Font's style.  
    Public PropertyGets the value of the Font object.  
    Top
    Public Methods
     NameDescription
    Public MethodReleases all resources used by the Font.  
    Public Methodstatic (Shared in Visual Basic)Gets the Font's Name from a font file & then returns it.  
    Public Methodstatic (Shared in Visual Basic)Gets the Font's byte array.  
    Public MethodReturns the Font's height, as well as its ascent & descent.  
    Public Methodstatic (Shared in Visual Basic)Calculates the text's height, based on the Font's NameSize, as well as the text block's width.    
    Public Methodstatic (Shared in Visual Basic)Calculates the text's width, based on the Font's NameSize.  
    Top
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also