Class DocumentFontsSubsystem
이름 공간 : Aspose.Note.Fonts 모임: Aspose.Note.dll (25.4.0)
WL31_.FontsSubsystem의 간단한 구현. OS에서 System.Drawing.FoontFamily 개체를 리트리브합니다.
public class DocumentFontsSubsystem : FontsSubsystem, IFontsSubsystem
Inheritance
object ← FontsSubsystem ← DocumentFontsSubsystem
Implements
상속 회원들
FontsSubsystem.AddFontSubstitution(string, string) , FontsSubsystem.AddFont(Stream, string) , FontsSubsystem.AddFont(Stream) , FontsSubsystem.AddFont(string) , FontsSubsystem.LoadFontsFromFolder(string) , FontsSubsystem.GetFontFamily(string) , FontsSubsystem.TranslateFontName(string) , FontsSubsystem.FetchFontFamily(string) , FontsSubsystem.FindFontFamilyInInternalCollection(string) , FontsSubsystem.DefaultFont , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Examples
지정된 기본 글꼴을 사용하여 PDF 형식으로 문서를 저장하는 방법을 보여줍니다.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "missing-font.one"));
// Save the document as PDF
dataDir = dataDir + "SaveUsingDocumentFontsSubsystemWithDefaultFontName_out.pdf";
oneFile.Save(dataDir, new PdfSaveOptions()
{
FontsSubsystem = DocumentFontsSubsystem.UsingDefaultFont("Times New Roman")
});
PDF 형식의 문서를 기본 글꼴을 사용하여 파일에서 저장하는 방법을 보여줍니다.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
string fontFile = Path.Combine(dataDir, "geo_1.ttf");
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "missing-font.one"));
// Save the document as PDF
dataDir = dataDir + "SaveUsingDocumentFontsSubsystemWithDefaultFontFromFile_out.pdf";
oneFile.Save(dataDir, new PdfSaveOptions()
{
FontsSubsystem = DocumentFontsSubsystem.UsingDefaultFontFromFile(fontFile)
});
PDF 형식의 문서를 기본 글꼴을 사용하여 스트림에서 저장하는 방법을 보여줍니다.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
string fontFile = Path.Combine(dataDir, "geo_1.ttf");
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "missing-font.one"));
// Save the document as PDF
dataDir = dataDir + "SaveUsingDocumentFontsSubsystemWithDefaultFontFromStream_out.pdf";
using (var stream = File.Open(fontFile, FileMode.Open, FileAccess.Read, FileShare.Read))
{
oneFile.Save(dataDir, new PdfSaveOptions()
{
FontsSubsystem = DocumentFontsSubsystem.UsingDefaultFontFromStream(stream)
});
}
Constructors
DocumentFontsSubsystem(흐름, 사전<string, string=“>”)
Aspose.Note.Fonts.DocumentFonsSubsystem 클래스의 새로운 예를 시작합니다.
public DocumentFontsSubsystem(Stream defaultFontStream, Dictionary<string, string=""> fontsSubstitutions = null)
Parameters
defaultFontStream
Stream
기본적인 글꼴입니다.
fontsSubstitutions
Dictionary
<에 대한 정보
string
, string
>
글꼴이 대체됩니다.
DocumentFontsSubsystem(string, 단어<string, string=“>”)
Aspose.Note.Fonts.DocumentFonsSubsystem 클래스의 새로운 예를 시작합니다.
public DocumentFontsSubsystem(string defaultFontFile, Dictionary<string, string=""> fontsSubstitutions = null)
Parameters
defaultFontFile
string
기본적인 글꼴입니다.
fontsSubstitutions
Dictionary
<에 대한 정보
string
, string
>
글꼴이 대체됩니다.
DocumentFontsSubsystem(단어 <string, string=“>”)
Aspose.Note.Fonts.DocumentFonsSubsystem 클래스의 새로운 예를 시작합니다.
public DocumentFontsSubsystem(Dictionary<string, string=""> fontsSubstitutions = null)
Parameters
fontsSubstitutions
Dictionary
<에 대한 정보
string
, string
>
글꼴이 대체됩니다.
Properties
Default
그것은 정적 인 기본 사례를 얻거나 설정합니다.
public static DocumentFontsSubsystem Default { get; set; }
부동산 가치
Methods
FetchFontFamily(스트리트)
GetFontFamily에 대한 후보로 글꼴 가족을 축하합니다.
protected override FontFamily FetchFontFamily(string fontName)
Parameters
fontName
string
그 이름의 글꼴.
Returns
원제 :Drawing.FontFamily
UsingDefaultFont(string, 단어<string, string=“>”)
지정된 기본 문자 이름을 사용하여 새로운 DocumentFontsSubsystem 예를 만듭니다.
public static DocumentFontsSubsystem UsingDefaultFont(string defaultFontName, Dictionary<string, string=""> fontsSubstitutions = null)
Parameters
defaultFontName
string
기본적인 글꼴 이름입니다.
fontsSubstitutions
Dictionary
<에 대한 정보
string
, string
>
글꼴이 대체됩니다.
Returns
WL31_.Fonts.DocumentFonsSubsystem에 해당되는 글 1건
Examples
지정된 기본 글꼴을 사용하여 PDF 형식으로 문서를 저장하는 방법을 보여줍니다.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "missing-font.one"));
// Save the document as PDF
dataDir = dataDir + "SaveUsingDocumentFontsSubsystemWithDefaultFontName_out.pdf";
oneFile.Save(dataDir, new PdfSaveOptions()
{
FontsSubsystem = DocumentFontsSubsystem.UsingDefaultFont("Times New Roman")
});
UsingDefaultFontFromFile(string, 단어<string, string=“>”)
새 DocumentFontsSubsystem 예제를 기본으로 지정된 파일에서 글꼴을 사용하여 생성합니다.
public static DocumentFontsSubsystem UsingDefaultFontFromFile(string filePath, Dictionary<string, string=""> fontsSubstitutions = null)
Parameters
filePath
string
기본 문자 이름을 포함하는 파일.
fontsSubstitutions
Dictionary
<에 대한 정보
string
, string
>
글꼴이 대체됩니다.
Returns
WL31_.Fonts.DocumentFonsSubsystem에 해당되는 글 1건
Examples
PDF 형식의 문서를 기본 글꼴을 사용하여 파일에서 저장하는 방법을 보여줍니다.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
string fontFile = Path.Combine(dataDir, "geo_1.ttf");
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "missing-font.one"));
// Save the document as PDF
dataDir = dataDir + "SaveUsingDocumentFontsSubsystemWithDefaultFontFromFile_out.pdf";
oneFile.Save(dataDir, new PdfSaveOptions()
{
FontsSubsystem = DocumentFontsSubsystem.UsingDefaultFontFromFile(fontFile)
});
UsingDefaultFontFromStream(흐름, 사전<string, string=“>”)
새 DocumentFontsSubsystem 예제를 기본적으로 지정된 스트림에서 글꼴을 사용하여 생성합니다.
public static DocumentFontsSubsystem UsingDefaultFontFromStream(Stream defaultFontStream, Dictionary<string, string=""> fontsSubstitutions = null)
Parameters
defaultFontStream
Stream
기본 문자 이름을 포함하는 스트림.
fontsSubstitutions
Dictionary
<에 대한 정보
string
, string
>
글꼴이 대체됩니다.
Returns
WL31_.Fonts.DocumentFonsSubsystem에 해당되는 글 1건
Examples
PDF 형식의 문서를 기본 글꼴을 사용하여 스트림에서 저장하는 방법을 보여줍니다.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_LoadingAndSaving();
string fontFile = Path.Combine(dataDir, "geo_1.ttf");
// Load the document into Aspose.Note.
Document oneFile = new Document(Path.Combine(dataDir, "missing-font.one"));
// Save the document as PDF
dataDir = dataDir + "SaveUsingDocumentFontsSubsystemWithDefaultFontFromStream_out.pdf";
using (var stream = File.Open(fontFile, FileMode.Open, FileAccess.Read, FileShare.Read))
{
oneFile.Save(dataDir, new PdfSaveOptions()
{
FontsSubsystem = DocumentFontsSubsystem.UsingDefaultFontFromStream(stream)
});
}
</string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,></string,>