oldj / node-font-list

Get the list of fonts installed in the system.
MIT License
133 stars 22 forks source link

Support Get Font postScriptName #22

Open tjx666 opened 2 years ago

tjx666 commented 2 years ago

In my using case, I need to get available fonts in AE CEP extension. I using this package to get font name list, but I found that AE using font postScriptName, but not the result return by this package.

image

This package seems to get the name of compatibleFullName.

image

image

MoeHero commented 2 years ago

之前因为css的问题改动过 你可以试试看1.3.x 现在windows用powershell默认获取的是font family 实在不行就加个设置?

tjx666 commented 2 years ago

@MoeHero 考虑通用性的话不如返回这样的结构:

[
    {
        familyName: 'xxx1',
        postScriptName: 'xxx1'
    },
    {
        familyName: 'xxx2',
        postScriptName: 'xxx2'
    }
]

这样的话后期还可以扩展其它属性。

MoeHero commented 2 years ago

也不错 你先看看1.3.x好用不?

Nan-Ling commented 2 years ago

1.3.x 也是没有返回PostScript名称,加个设置是指?

PerryDesign commented 11 months ago

Just wondering, has this feature been included yet? I am building a CEP tool as well and need the postScriptName.

tjx666 commented 10 months ago

@Nan-Ling