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.
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.