mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-03-11 20:42:53 -04:00
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com> Co-authored-by: Joe Milazzo <josephmajora@gmail.com>
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using System;
|
|
using Kavita.Models.Entities.Interfaces;
|
|
using Kavita.Models.Entities.Enums.Font;
|
|
|
|
namespace Kavita.Models.Entities;
|
|
|
|
/// <summary>
|
|
/// Represents a user provider font to be used in the epub reader
|
|
/// </summary>
|
|
public class EpubFont: IEntityDate
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Name of the font
|
|
/// </summary>
|
|
public required string Name { get; set; }
|
|
/// <summary>
|
|
/// Normalized name for lookups
|
|
/// </summary>
|
|
public required string NormalizedName { get; set; }
|
|
/// <summary>
|
|
/// Filename of the font, stored under <see cref="DirectoryService.EpubFontDirectory"/>
|
|
/// </summary>
|
|
/// <remarks>System provided fonts use an alternative location as they are packaged with the app</remarks>
|
|
public required string FileName { get; set; }
|
|
/// <summary>
|
|
/// Where the font came from
|
|
/// </summary>
|
|
public FontProvider Provider { get; set; }
|
|
|
|
public DateTime Created { get; set; }
|
|
public DateTime CreatedUtc { get; set; }
|
|
public DateTime LastModified { get; set; }
|
|
public DateTime LastModifiedUtc { get; set; }
|
|
|
|
public static readonly string DefaultFont = "Default";
|
|
}
|