Move custom fonts management to Reader tab (#2161)

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-01-05 15:25:48 -07:00
committed by GitHub
co-authored by acx10
parent 926b87872e
commit 24862ed62b
8 changed files with 97 additions and 121 deletions
@@ -1,4 +1,4 @@
import { CustomFont } from '../model/custom-font.model';
import {CustomFont} from '../model/custom-font.model';
/**
* Font dropdown item for epub-reader component (PrimeNG Select format)
@@ -39,12 +39,6 @@ export function addCustomFontsToDropdown<T extends FontDropdownItem | FontPrefer
targetArray.splice(separatorIndex, 1);
}
(targetArray as FontDropdownItem[]).push({
label: '--- Custom Fonts ---',
value: 'separator',
disabled: true
});
fonts.forEach(font => {
(targetArray as FontDropdownItem[]).push({
label: font.fontName,
@@ -57,12 +51,6 @@ export function addCustomFontsToDropdown<T extends FontDropdownItem | FontPrefer
targetArray.splice(separatorIndex, 1);
}
(targetArray as FontPreferenceItem[]).push({
name: '--- Custom Fonts ---',
displayName: '---',
key: 'separator'
});
fonts.forEach(font => {
(targetArray as FontPreferenceItem[]).push({
name: font.fontName,