FontResourceBase
FontResourceBase class
Base class for any supported font type as a resource for the HTML document with all its properties
public abstract class FontResourceBase : IEquatable<FontResourceBase>, IHtmlResource
Properties
Name |
Description |
ByteContent { get; } |
Returns content of this font as byte stream |
FilenameWithExtension { get; } |
Returns correct filename of this font resource, which consists of name and extension. Theoretically can differ from the name. |
IsDisposed { get; } |
Determines whether this font is disposed or not |
Name { get; } |
Returns name of this font resource. Usually doesn’t contain filename extension and theoretically can differ from filename. |
TextContent { get; } |
Returns content of this font as base64-encoded string. This value is cached after first invoke. |
abstract Type { get; } |
In implementing type should return information about type of specific font resource as an instance of specific FontType type, which encapsulates all type-specific info |
Methods
Name |
Description |
Dispose() |
Disposes this font resource, disposing its content and making most methods and properties non-working |
Equals(FontResourceBase) |
Checks this instance with specified font resource on reference equality |
Equals(IHtmlResource) |
Checks this instance with specified HTML resource on reference equality |
Save(string) |
Saves this font to the specified file |
Events
Name |
Description |
event Disposed |
Event, which occurs when this font is disposed |
See Also