(style: FontStyle)
| 23 | * Fontsource-style published assets collapse oblique faces into `italic`. |
| 24 | */ |
| 25 | export const formatStyle = (style: FontStyle): 'normal' | 'italic' => { |
| 26 | if (style === 'normal' || style === 'italic') { |
| 27 | return style; |
| 28 | } |
| 29 | |
| 30 | return 'italic'; |
| 31 | }; |
| 32 | |
| 33 | export const formatStretchValue = (axis: VariableFontAxis): string => |
| 34 | String(axis.min) === String(axis.max) |
no outgoing calls
no test coverage detected