Class FontsSubsystem
اسم الفضاء : Aspose.Note.Fonts تجميع: Aspose.Note.dll (25.4.0)
الدرجة الأساسية تنفيذ Aspose.Note.Fonts.IFONTsمواجهة النظام الأساسي.يوفر وظائف لتغيير الخطوط الافتراضية والخطوط.Override Aspose.Note.Fonts.FoonsSubsystem.fetchFentFamily حماية وظيفة العضو في فئة مشتقة لتنفيذ المنطق لاسترداد System.Drawing.foonsObject.
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(تدفق، قاموس<string، string="">)
يبدأ حالة جديدة من فئة Aspose.Note.Fonts.FoonsSubsystem.
protected FontsSubsystem(
Stream defaultFont,
Dictionary<string, string> fontsSubstitutions = null)
{
}
Parameters
defaultFont
Stream
الشبكة التي تحتوي على الخط الافتراضي.
fontsSubstitutions
Dictionary
<؛
string
, string
>
استبدال الأصوات .
FontsSubsystem(string، القاموس< string، string="">)
يبدأ حالة جديدة من فئة Aspose.Note.Fonts.FoonsSubsystem.
protected FontsSubsystem(string defaultFontFile, Dictionary<string, string> fontsSubstitutions = null)
{
}
Parameters
defaultFontFile
string
الشبكة التي تحتوي على الخط الافتراضي.
fontsSubstitutions
Dictionary
<؛
string
, string
>
استبدال الأصوات .
الأوسمة( )
يبدأ حالة جديدة من فئة Aspose.Note.Fonts.FoonsSubsystem.
protected FontsSubsystem()
{
}
Properties
DefaultFont
يحصل أو يضع الخط الافتراضي.
public FontFamily DefaultFont
{
get;
protected set;
}
قيمة الممتلكات
Methods
AddFont (تدفق، سلك)
أضف الخط .
public void AddFont(Stream stream, string tempFolder)
{
}
Parameters
stream
Stream
الشبكة التي تحتوي على الخط.
tempFolder
string
أضف إلى Temp Folder.
الإشارة ( Stream )
أضف الخط .
public void AddFont(Stream stream)
{
}
Parameters
stream
Stream
الشبكة التي تحتوي على الخط.
إضافي ( String )
أضف الخط .
public void AddFont(string file)
{
}
Parameters
file
string
الطريق إلى الملف الذي يحتوي على الخط.
AddFontSubstitution(سلسلة، سلم)
إضافة استبدال الخطوط.
public void AddFontSubstitution(string substituted, string substitution)
{
}
Parameters
substituted
string
اسم الخط المبدل.
substitution
string
اسم الخط البديل.
فتاة عائلية (String)
فاتش عائلة الخط كمرشح لـ GetFontFamily.
protected abstract FontFamily FetchFontFamily(string fontName)
{
}
Parameters
fontName
string
اسم المصطلح .
Returns
فيديوهات متعلقة بـ “ System.Drawing.FontFamily ”
FindFontFamilyInInternalCollection(صورة)
يحاول العثور على عائلة الخطوط في المجموعة الداخلية للخطوط GDI.
protected FontFamily FindFontFamilyInInternalCollection(string fontFamilyName)
{
foreach (FontFamily fontFamily in this._internalFontFamilies)
{
if (fontFamily.Name == fontFamilyName)
return fontFamily;
}
return null;
}
Parameters
fontFamilyName
string
اسم الاسم العائلي.
Returns
فيديوهات متعلقة بـ “ System.Drawing.FontFamily ”
إلغاء العائلة (String)
حصلت على صورة عائلية
public virtual FontFamily GetFontFamily(string fontName)
{
}
Parameters
fontName
string
اسم المصطلح .
Returns
فيديوهات متعلقة بـ “ 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
معيار “الملف” هو صفر أو فارغ.
لا يوجد دليل محدد بواسطة المجلد.
الملف من المجلد لا يحتوي على الخط TrueType.
الترجمةFontName(string)
حاول ترجمة اسم الخط إلى استبداله من خلال الجدول الداخلي.
protected string TranslateFontName(string fontName)
{
}
Parameters
fontName
string
اسم المصطلح .
Returns
اسم الخط البديل إذا تم تحديد الاسم الخط المحدد نفسه.</string,></string,></string,></string,>