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()
Assembly: Syncfusion.Shared.Base.dll
Syntax
Constructors
FontUtil()
Declaration
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
CreateFont(String, Single)
Declaration
public static Font CreateFont(string facename, float size)
Parameters
Type |
Name |
Description |
System.String |
facename |
|
System.Single |
size |
|
Returns
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
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
GetPrivateFont(String)
Declaration
public static FontFamily GetPrivateFont(string familyName)
Parameters
Type |
Name |
Description |
System.String |
familyName |
|
Returns
Type |
System.Drawing.FontFamily |
PanoseFontFamilyType(Graphics, 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