Last active
August 4, 2018 14:22
-
-
Save sagax/b8521fa60fdaec2466c2f952f8516268 to your computer and use it in GitHub Desktop.
Get true font name from font file in json format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fc-scan --format "{\"family\":\"%{family}\",\"fontformat\":\"%{fontformat}\",\"postscriptname\":\"%{postscriptname}\"}" | |
# fc-scan --format "{\"family\": \"%{family}\" , \"postscriptname\": \"%{postscriptname}\"}" ~/.fonts/7288.ttf | jq . | |
# | |
# { | |
# "family": "Lazurski", | |
# "postscriptname": "LazurskiBoldCyrillic" | |
# } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment