feature/fetch-fonts #14

Merged
ilia merged 76 commits from feature/fetch-fonts into main 2026-01-14 11:01:44 +00:00
5 changed files with 62 additions and 0 deletions
Showing only changes of commit e1af950442 - Show all commits

View File

@@ -0,0 +1,4 @@
export {
createFontCollection,
type FontCollectionStore,
} from './helpers/createFontCollection.svelte';

View File

@@ -0,0 +1,38 @@
export { fontCollection } from './store/fontCollection.svelte';
export type {
// Domain types
FontCategory,
FontCollectionFilters,
FontCollectionSort,
// Store types
FontCollectionState,
FontCollectionStore,
FontFeatures,
FontFiles,
FontItem,
FontMetadata,
FontProvider,
// Fontshare API types
FontshareApiModel,
FontshareAxis,
FontshareDesigner,
FontshareFeature,
FontshareFont,
FontshareLink,
FontsharePublisher,
FontshareStyle,
FontshareStyleProperties,
FontshareTag,
FontshareWeight,
FontStyleUrls,
FontSubset,
FontVariant,
FontWeight,
FontWeightItalic,
// Google Fonts API types
GoogleFontsApiModel,
// Normalization types
UnifiedFont,
UnifiedFontVariant,
} from './types';

View File

@@ -0,0 +1,3 @@
import FontSearch from './FontSearch/FontSearch.svelte';
export { FontSearch };

View File

@@ -0,0 +1 @@
export { createTypographyControlManager } from './controlManager/controlManager.svelte';

View File

@@ -0,0 +1,16 @@
export {
DEFAULT_FONT_SIZE,
DEFAULT_FONT_WEIGHT,
DEFAULT_LINE_HEIGHT,
FONT_SIZE_STEP,
FONT_WEIGHT_STEP,
LINE_HEIGHT_STEP,
MAX_FONT_SIZE,
MAX_FONT_WEIGHT,
MAX_LINE_HEIGHT,
MIN_FONT_SIZE,
MIN_FONT_WEIGHT,
MIN_LINE_HEIGHT,
} from './const/const';
export { controlManager } from './state/manager.svelte';