Class FontsSubsystem

Class FontsSubsystem

이름 공간 : Aspose.Note.Fonts 모임: Aspose.Note.dll (25.4.0)

기본 클래스 구현 Aspose.Note.Fonts.IFonsSubsystem 인터페이스.기본 문자와 문자의 대체 기능을 제공합니다.Override Aspose.Note.FontsSubsystem.fetchFentFamily는 추출 클래스에서 멤버 기능을 보호하여 System.Drawing.FountFamili 개체를 복구하기위한 논리를 구현합니다.

public abstract class FontsSubsystem : IFontsSubsystem
{
    public abstract Font GetFontByName(string name);
    public abstract void AddFont(Font font);
    public abstract void RemoveFont(Font font);
}

Inheritance

object FontsSubsystem

Derived

DocumentFontsSubsystem

Implements

IFontsSubsystem

상속 회원들

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.SUBSISTEM 클래스의 새로운 예를 시작합니다.

protected FontsSubsystem(
      Stream defaultFont,
      Dictionary<string, string> fontsSubstitutions = null)
   {
   }

Parameters

defaultFont Stream

지정된 글꼴을 포함하는 스트림.

fontsSubstitutions Dictionary &lt에 대한 정보 string , string >

글꼴이 대체됩니다.

FontsSubsystem(스트링, 사전<스트린, 스트링="">)

Aspose.Note.Fonts.SUBSISTEM 클래스의 새로운 예를 시작합니다.

protected FontsSubsystem(string defaultFontFile, Dictionary<string, string> fontsSubstitutions = null)
   {
   }

Parameters

defaultFontFile string

지정된 글꼴을 포함하는 스트림.

fontsSubstitutions Dictionary &lt에 대한 정보 string , string >

글꼴이 대체됩니다.

소프트웨어( )

Aspose.Note.Fonts.SUBSISTEM 클래스의 새로운 예를 시작합니다.

protected FontsSubsystem()
   {
   }

Properties

DefaultFont

가져오거나 기본 글꼴을 설정합니다.

public FontFamily DefaultFont
   {
      get;
      protected set;
   }

부동산 가치

FontFamily

Methods

AddFont(전류, 스트리트)

글꼴을 추가합니다.

public void AddFont(Stream stream, string tempFolder)
   {
   }

Parameters

stream Stream

글꼴을 포함하는 흐름.

tempFolder string

Temp 폴더 입니다.

액세서리(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

대체 이름의 글꼴입니다.

페스티벌(FetchFontFamily)

GetFontFamily에 대한 후보로 글꼴 가족을 축하합니다.

protected abstract FontFamily FetchFontFamily(string fontName)
   {
   }

Parameters

fontName string

그 이름의 글꼴.

Returns

FontFamily

원제 :Drawing.FontFamily

찾기FontFamilyInInternalCollection(string)

GDI 문자열의 내부 컬렉션에서 글꼴 가족을 찾으려고합니다.

protected FontFamily FindFontFamilyInInternalCollection(string fontFamilyName)
   {
      foreach (FontFamily fontFamily in this._internalFontFamilies)
      {
         if (fontFamily.Name == fontFamilyName)
            return fontFamily;
      }
      return null;
   }

Parameters

fontFamilyName string

폰트 가족 이름.

Returns

FontFamily

원제 :Drawing.FontFamily

스트링(String)에 대한 자세한 내용

가족의 글꼴을 쓴다.

public virtual FontFamily GetFontFamily(string fontName)
   {
   }

Parameters

fontName string

그 이름의 글꼴.

Returns

FontFamily

원제 :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

NullReferenceException

파라미터 ‘폴더’는 0 또는 텅 비어 있습니다.

DirectoryNotFoundException

폴더에 의해 지정된 디렉토리는 존재하지 않습니다.

InvalidDataException

폴더의 파일에는 TrueType 글꼴이 포함되어 있지 않습니다.

번역기사(String)

내부 테이블을 통해 글꼴 이름을 대체하기 위해 번역하십시오.

protected string TranslateFontName(string fontName)
   {
   }

Parameters

fontName string

그 이름의 글꼴.

Returns

string

지정된 글꼴 이름 자체가 다른 경우에 대체 문자 이름입니다.</string,></string,></string,></string,>

 한국어