fix/filtration #20

Merged
ilia merged 7 commits from fix/filtration into main 2026-02-05 08:51:46 +00:00
Showing only changes of commit 0554fcada7 - Show all commits

View File

@@ -12,6 +12,7 @@ import type {
FontshareFont,
GoogleFontItem,
UnifiedFont,
UnifiedFontVariant,
} from '../../model/types';
/**
@@ -186,7 +187,7 @@ export function normalizeFontshareFont(apiFont: FontshareFont): UnifiedFont {
const variants = apiFont.styles.map(style => {
const weightLabel = style.weight.label;
const isItalic = style.is_italic;
return isItalic ? `${weightLabel}italic` : weightLabel;
return (isItalic ? `${weightLabel}italic` : weightLabel) as UnifiedFontVariant;
});
// Map styles to URLs