import type {TextStyle} from 'react-native'

// fonts are embedded natively via the expo-font config plugin, so families
// resolve by the names inside the font files (postscript names), not by
// runtime aliases
export const FONT_FAMILY = 'InterVariable'
export const FONT_FAMILY_DISPLAY = 'Fraunces72ptSuperSoft-SemiBold'
export const FONT_FAMILY_MONO = 'ui-monospace'
// emoji render via the system font so they use Apple Color Emoji metrics
// instead of being clipped by Inter's tight box
export const FONT_FAMILY_EMOJI = 'System'

export function applyFonts(style: TextStyle): TextStyle {
  return {...style, fontFamily: FONT_FAMILY}
}
