fix/filtration #20
@@ -8,17 +8,18 @@ import type {
|
|||||||
FontCategory,
|
FontCategory,
|
||||||
FontProvider,
|
FontProvider,
|
||||||
FontSubset,
|
FontSubset,
|
||||||
|
FontVariant,
|
||||||
} from './common';
|
} from './common';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Font variant types (standardized)
|
* Font variant types (standardized)
|
||||||
*/
|
*/
|
||||||
export type UnifiedFontVariant = string;
|
export type UnifiedFontVariant = FontVariant;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Font style URLs
|
* Font style URLs
|
||||||
*/
|
*/
|
||||||
export interface FontStyleUrls {
|
export interface LegacyFontStyleUrls {
|
||||||
/** Regular weight URL */
|
/** Regular weight URL */
|
||||||
regular?: string;
|
regular?: string;
|
||||||
/** Italic URL */
|
/** Italic URL */
|
||||||
@@ -29,6 +30,10 @@ export interface FontStyleUrls {
|
|||||||
boldItalic?: string;
|
boldItalic?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface FontStyleUrls extends LegacyFontStyleUrls {
|
||||||
|
variants?: Partial<Record<UnifiedFontVariant, string>>;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Font metadata
|
* Font metadata
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user