menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FontUtil - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FontUtil

    Inheritance
    System.Object
    FontUtil
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Drawing
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class FontUtil

    Constructors

    FontUtil()

    Declaration
    public FontUtil()

    Methods

    AddFontFile(String)

    Declaration
    public static FontFamily AddFontFile(string fileName)
    Parameters
    Type Name Description
    System.String fileName
    Returns
    Type
    System.Drawing.FontFamily

    AddMemoryFont(IntPtr, Int32)

    Declaration
    public static FontFamily AddMemoryFont(IntPtr memory, int length)
    Parameters
    Type Name Description
    System.IntPtr memory
    System.Int32 length
    Returns
    Type
    System.Drawing.FontFamily

    AddMemoryFont(Stream)

    Declaration
    public static FontFamily AddMemoryFont(Stream s)
    Parameters
    Type Name Description
    System.IO.Stream s
    Returns
    Type
    System.Drawing.FontFamily

    CreateFont(Font, FontStyle)

    Declaration
    public static Font CreateFont(Font srcFont, FontStyle fontStyle)
    Parameters
    Type Name Description
    System.Drawing.Font srcFont
    System.Drawing.FontStyle fontStyle
    Returns
    Type
    System.Drawing.Font

    CreateFont(String, Single)

    Declaration
    public static Font CreateFont(string facename, float size)
    Parameters
    Type Name Description
    System.String facename
    System.Single size
    Returns
    Type
    System.Drawing.Font

    CreateFont(String, Single, FontStyle)

    Declaration
    public static Font CreateFont(string facename, float size, FontStyle fontStyle)
    Parameters
    Type Name Description
    System.String facename
    System.Single size
    System.Drawing.FontStyle fontStyle
    Returns
    Type
    System.Drawing.Font

    CreateFont(String, Single, FontStyle, GraphicsUnit)

    Declaration
    public static Font CreateFont(string facename, float size, FontStyle fontStyle, GraphicsUnit unit)
    Parameters
    Type Name Description
    System.String facename
    System.Single size
    System.Drawing.FontStyle fontStyle
    System.Drawing.GraphicsUnit unit
    Returns
    Type
    System.Drawing.Font

    GetPrivateFont(String)

    Declaration
    public static FontFamily GetPrivateFont(string familyName)
    Parameters
    Type Name Description
    System.String familyName
    Returns
    Type
    System.Drawing.FontFamily

    PanoseFontFamilyType(Graphics, Font)

    Gets the PanoseFontFamilyTypes for the specified font.

    Declaration
    public static PanoseFontFamilyTypes PanoseFontFamilyType(Graphics graphics, Font font)
    Parameters
    Type Name Description
    System.Drawing.Graphics graphics

    A graphics object to use when detecting the Panose family.

    System.Drawing.Font font

    The font to check.

    Returns
    Type Description
    PanoseFontFamilyTypes

    The Panose font family type.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved