Back to Website
Show / Hide Table of Contents

Class LocalFontStorage

Inheritance
System.Object
LocalFontStorage
Implements
IManagedFontStorage
IFontStorage
System.IDisposable
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()
Namespace: Aurigma.DesignAtoms.Services.Fonts
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class LocalFontStorage : IManagedFontStorage, IFontStorage, IDisposable

Constructors

LocalFontStorage(IConfiguration)

Declaration
public LocalFontStorage(IConfiguration configuration)
Parameters
Type Name Description
IConfiguration configuration

LocalFontStorage(String)

Declaration
public LocalFontStorage(string fontDirectory)
Parameters
Type Name Description
System.String fontDirectory

Methods

AddFontFile(String, String, Stream, Boolean)

Declaration
public void AddFontFile(string path, string fileName, Stream stream, bool overwrite)
Parameters
Type Name Description
System.String path
System.String fileName
System.IO.Stream stream
System.Boolean overwrite

Dispose()

Declaration
public void Dispose()

GetFontFilesAsync(String, Boolean)

Declaration
public Task<IEnumerable<string>> GetFontFilesAsync(string path, bool includeSubfolders)
Parameters
Type Name Description
System.String path
System.Boolean includeSubfolders
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.String>>

GetFontFilesByPathAsync(String, Boolean)

Declaration
public Task<IEnumerable<string>> GetFontFilesByPathAsync(string path, bool includeSubfolders)
Parameters
Type Name Description
System.String path
System.Boolean includeSubfolders
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<System.String>>

GetFontFoldersByPath(String, Boolean)

Declaration
public IEnumerable<string> GetFontFoldersByPath(string folderPath, bool includeSubfolders)
Parameters
Type Name Description
System.String folderPath
System.Boolean includeSubfolders
Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

GetFontStreamByPath(String)

Declaration
public Task<Stream> GetFontStreamByPath(string filePath)
Parameters
Type Name Description
System.String filePath
Returns
Type Description
System.Threading.Tasks.Task<System.IO.Stream>

IsFontDirectoryExists(String)

Declaration
public bool IsFontDirectoryExists(string folderPath)
Parameters
Type Name Description
System.String folderPath
Returns
Type Description
System.Boolean

IsFontFileExists(String)

Declaration
public bool IsFontFileExists(string filePath)
Parameters
Type Name Description
System.String filePath
Returns
Type Description
System.Boolean

RemoveFontDirectory(String)

Declaration
public bool RemoveFontDirectory(string directoryPath)
Parameters
Type Name Description
System.String directoryPath
Returns
Type Description
System.Boolean

RemoveFontFile(String)

Declaration
public bool RemoveFontFile(string filePath)
Parameters
Type Name Description
System.String filePath
Returns
Type Description
System.Boolean

Events

FontCollectionChanged

Declaration
public event EventHandler<EventArgs> FontCollectionChanged
Event Type
Type Description
System.EventHandler<System.EventArgs>

Implements

IManagedFontStorage
IFontStorage
System.IDisposable
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback