Skip to main content

Class LocalFontStorage

Namespace: Aurigma.DesignAtoms.Services.Fonts
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class LocalFontStorage : IManagedFontStorage, IFontStorage, IDisposable

Inheritance: System.Object -> LocalFontStorage

Implements

Inherited Members

  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Constructors

LocalFontStorage

public LocalFontStorage(IConfiguration configuration)

LocalFontStorage

public LocalFontStorage(string fontDirectory)

Methods

AddFontFile

public void AddFontFile(string path, string fileName, Stream stream, bool overwrite)
Parameters
TypeNameDescription
System.Stringpath
System.StringfileName
System.IO.Streamstream
System.Booleanoverwrite

RemoveFontFile

public bool RemoveFontFile(string filePath)
Parameters
TypeNameDescription
System.StringfilePath
Returns

System.Boolean

RemoveFontDirectory

public bool RemoveFontDirectory(string directoryPath)
Parameters
TypeNameDescription
System.StringdirectoryPath
Returns

System.Boolean

IsFontFileExists

public bool IsFontFileExists(string filePath)
Parameters
TypeNameDescription
System.StringfilePath
Returns

System.Boolean

IsFontDirectoryExists

public bool IsFontDirectoryExists(string folderPath)
Parameters
TypeNameDescription
System.StringfolderPath
Returns

System.Boolean

GetFontStreamByPath

public Task<Stream> GetFontStreamByPath(string filePath)
Parameters
TypeNameDescription
System.StringfilePath
Returns

System.Threading.Tasks.Task<System.IO.Stream>

GetFontFoldersByPath

public IEnumerable<string> GetFontFoldersByPath(string folderPath, bool includeSubfolders)
Parameters
TypeNameDescription
System.StringfolderPath
System.BooleanincludeSubfolders
Returns

System.Collections.Generic.IEnumerable<System.String>

GetFontFilesByPathAsync

public Task<IEnumerable<string>> GetFontFilesByPathAsync(string path, bool includeSubfolders)
Parameters
TypeNameDescription
System.Stringpath
System.BooleanincludeSubfolders
Returns

System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.String>>

GetFontFilesAsync

public Task<IEnumerable<string>> GetFontFilesAsync(string path, bool includeSubfolders)
Parameters
TypeNameDescription
System.Stringpath
System.BooleanincludeSubfolders
Returns

System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.String>>

Dispose

public void Dispose()

Events

FontCollectionChanged

public event EventHandler<EventArgs> FontCollectionChanged
Was this page helpful?