Class FontsSubsystem
ชื่อพื้นที่: Aspose.Note.Fonts การประกอบ: Aspose.Note.dll (25.4.0)
คลาสพื้นฐานการนําไปใช้ Aspose.Note.Fonts.IFONTsอินเตอร์เฟซSubsystemให้ฟังก์ชั่นสําหรับตัวอักษรที่กําหนดเองและตัวแทนOverride Aspose.Note.FontsSubsystem. FetchFentFamily ปรับปรุงฟังก์ชั่นสมาชิกในหมวดหมู่ที่สอดคล้องเพื่อนําไปใช้โลโก้ในการรับ System.Drawing.
public abstract class FontsSubsystem : IFontsSubsystem
{
public abstract Font GetFontByName(string name);
public abstract void AddFont(Font font);
public abstract void RemoveFont(Font font);
}
Inheritance
Derived
Implements
อนุญาโตตุลาการ
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
FontsSubsystem(Stream, Dictionary<string, string="">)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Note.Fonts.FoonsSubsystem
protected FontsSubsystem(
Stream defaultFont,
Dictionary<string, string> fontsSubstitutions = null)
{
}
Parameters
defaultFont
Stream
กระแสที่มีตัวอักษรที่กําหนดเอง
fontsSubstitutions
Dictionary
<
string
, string
>
ตัวแทนของ fonts
FontsSubsystem(string, คําอธิบาย<strings, string="">)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Note.Fonts.FoonsSubsystem
protected FontsSubsystem(string defaultFontFile, Dictionary<string, string> fontsSubstitutions = null)
{
}
Parameters
defaultFontFile
string
กระแสที่มีตัวอักษรที่กําหนดเอง
fontsSubstitutions
Dictionary
<
string
, string
>
ตัวแทนของ fonts
โซฟท์ซอฟต์แวร์ ()
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Note.Fonts.FoonsSubsystem
protected FontsSubsystem()
{
}
Properties
DefaultFont
รับหรือตั้งค่าตัวอักษรที่กําหนดเอง
public FontFamily DefaultFont
{
get;
protected set;
}
คุณสมบัติมูลค่า
Methods
AddFont(สตรีม, string)
เพิ่มอักษร
public void AddFont(Stream stream, string tempFolder)
{
}
Parameters
stream
Stream
กระแสที่ประกอบด้วย font
tempFolder
string
โฟลเดอร์ Temp
AddFont (สตรีม)
เพิ่มอักษร
public void AddFont(Stream stream)
{
}
Parameters
stream
Stream
กระแสที่ประกอบด้วย font
AddFont(สกรู)
เพิ่มอักษร
public void AddFont(string file)
{
}
Parameters
file
string
เส้นทางไปยังไฟล์ที่มี font
AddFontSubstitution( string, string)
เพิ่มการแทนที่ font
public void AddFontSubstitution(string substituted, string substitution)
{
}
Parameters
substituted
string
ชื่อ font ที่ถูกแทนที่
substitution
string
ชื่อตัวอักษรการเปลี่ยน
ฟิตติ้งFetchFontFamily(string)
Fetches ครอบครัวอักษรเป็น候補สําหรับ GetFontFamily
protected abstract FontFamily FetchFontFamily(string fontName)
{
}
Parameters
fontName
string
ชื่อ font
Returns
The System.Drawing.FontFamily
ค้นหาFontFamilyInInternalCollection(string)
มองหาครอบครัว font ในรวบรวมตัวอักษร GDI
protected FontFamily FindFontFamilyInInternalCollection(string fontFamilyName)
{
foreach (FontFamily fontFamily in this._internalFontFamilies)
{
if (fontFamily.Name == fontFamilyName)
return fontFamily;
}
return null;
}
Parameters
fontFamilyName
string
ชื่อครอบครัว font
Returns
The System.Drawing.FontFamily
GetFontFamily( String)
ได้รับ font ครอบครัว
public virtual FontFamily GetFontFamily(string fontName)
{
}
Parameters
fontName
string
ชื่อ font
Returns
The System.Drawing.FontFamily
LoadFontsFromFolder(สกรู)
ดาวน์โหลดข้อความ TrueType ทั้งหมดจากโฟลเดอร์ที่ระบุไปยังรวบรวมภายใน
public void LoadFontsFromFolder(string folder)
{
foreach (var file in Directory.GetFiles(folder, "*.ttf"))
{
using (var font = new Font(file))
{
AddFont(font);
}
}
}
Parameters
folder
string
โพสต์ที่มีตัวอักษร
Exceptions
พารามิเตอร์ ‘โฟลเดอร์’ เป็นศูนย์หรือว่างเปล่า
ไม่มีไดเรกทอรีที่ระบุโดยโฟลเดอร์
ไฟล์จากโฟลเดอร์ไม่ได้มี font TrueType
TranslateFontName(string)
พยายามที่จะแปลชื่ออักษรเพื่อแทนที่มันผ่านตารางภายใน
protected string TranslateFontName(string fontName)
{
}
Parameters
fontName
string
ชื่อ font
Returns
ชื่อตัวอักษรการแทนที่ถ้าระบุอื่นชื่อ font ที่ระบุไว้เอง</string,></string,></string,></string,>