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
Inheritance
Derived
Implements
อนุญาโตตุลาการ
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
FontsSubsystem(สตรีม, 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, คําพูด<string, string="">)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Note.Fonts.FoonsSubsystem
protected FontsSubsystem(string defaultFontFile, Dictionary<string, string=""> fontsSubstitutions = null)
Parameters
defaultFontFile
string
กระแสที่มีตัวอักษรที่กําหนดเอง
fontsSubstitutions
Dictionary
<
string
, string
>
ตัวแทนของ fonts
FontsSubsystem()
เปิดตัวตัวอย่างใหม่ของคลาส 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(Stream)
เพิ่มอักษร
public void AddFont(Stream stream)
Parameters
stream
Stream
กระแสที่ประกอบด้วย font
AddFont(รั้ว)
เพิ่มอักษร
public void AddFont(string file)
Parameters
file
string
เส้นทางไปยังไฟล์ที่มี font
AddFontSubstitution(รั้ว, รั้ว)
เพิ่มการแทนที่ font
public void AddFontSubstitution(string substituted, string substitution)
Parameters
substituted
string
ชื่อ font ที่ถูกแทนที่
substitution
string
ชื่อตัวอักษรการเปลี่ยน
FetchFontFamily(รั้ว)
Fetches ครอบครัวอักษรเป็น候補สําหรับ GetFontFamily
protected abstract FontFamily FetchFontFamily(string fontName)
Parameters
fontName
string
ชื่อ font
Returns
The System.Drawing.FontFamily
FindFontFamilyInInternalCollection(รั้ว)
มองหาครอบครัว font ในรวบรวมตัวอักษร GDI
protected FontFamily FindFontFamilyInInternalCollection(string fontFamilyName)
Parameters
fontFamilyName
string
ชื่อครอบครัว font
Returns
The System.Drawing.FontFamily
GetFontFamily(รั้ว)
ได้รับ font ครอบครัว
public virtual FontFamily GetFontFamily(string fontName)
Parameters
fontName
string
ชื่อ font
Returns
The System.Drawing.FontFamily
LoadFontsFromFolder(รั้ว)
ดาวน์โหลดข้อความ TrueType ทั้งหมดจากโฟลเดอร์ที่ระบุไปยังรวบรวมภายใน
public void LoadFontsFromFolder(string folder)
Parameters
folder
string
โพสต์ที่มีตัวอักษร
Exceptions
พารามิเตอร์ ‘โฟลเดอร์’ เป็นศูนย์หรือว่างเปล่า
ไม่มีไดเรกทอรีที่ระบุโดยโฟลเดอร์
ไฟล์จากโฟลเดอร์ไม่ได้มี font TrueType
TranslateFontName(รั้ว)
พยายามที่จะแปลชื่ออักษรเพื่อแทนที่มันผ่านตารางภายใน
protected string TranslateFontName(string fontName)
Parameters
fontName
string
ชื่อ font
Returns
ชื่อตัวอักษรการแทนที่ถ้าระบุอื่นชื่อ font ที่ระบุไว้เอง</string,></string,></string,></string,>