font-kit icon indicating copy to clipboard operation
font-kit copied to clipboard

load font extremely slowly on macos than in windows and linux.

Open lencil opened this issue 2 years ago • 1 comments

use example match_font, run it with following arguments in macos. ./match-font "PingFang SC" "PingFang SC" is a macos default CJK font. This call will cost 3~5 seconds. I discovered that if you put the font in user ~/Library/fonts, it runs fast. But loading fonts in system fonts path will cost more time.

lencil avatar Jan 13 '23 16:01 lencil

on macos the example of the crate "./list-fonts" will cost several minutes, really realy slow.

lencil avatar Jan 13 '23 16:01 lencil