Check if font comes installed with macOS.
npm install is-macos-system-font
import isMacosSystemFont from 'is-macos-system-font';
isMacosSystemFont('Avenir');
//=> true
isMacosSystemFont('Inter');
//=> false
Type: string
Name of the font.
Check if font comes installed with macOS.
npm install is-macos-system-font
import isMacosSystemFont from 'is-macos-system-font';
isMacosSystemFont('Avenir');
//=> true
isMacosSystemFont('Inter');
//=> false
Type: string
Name of the font.
npm i is-macos-system-font
1
1.0.0
MIT
2.15 kB
5