Filter font-family from fontlist

DaSheng Hen's icon

In the fontlist documentation, I see: "Outputs a list of system fonts and, optionally, their system identification numbers. Optionally filters the list by font-family." However, the phrase "Optionally filters the list by font-family" does not provide specific instructions on how to achieve this. Could you clarify how this is implemented? For example, I would like to extract all font-families that match "Noto *".

Max Patch
Copy patch and select New From Clipboard in Max.

Here’s what I’ve tried: I can filter Noto fonts individually, but I’m unable to list all Noto fonts collectively in a umenu. I would greatly appreciate your help with this!

TFL's icon

It is also stated that the object can take a font-type argument:

Font types (see above) may be used as arguments to specify font types the fontlist object will recognize.

But I could not find how to use it, and the "see above" mention seems obsolete.

I think it's worth contacting the support and tell them that either the doc is outdated, either it lacks examples, either the object is broken.

DaSheng Hen's icon

Yes, the Max documentation was able to answer most of the questions I had, but this part was definitely not clear.

Source Audio's icon

you can get all Noto fonts like this

also regexp Noto.* would do

DaSheng Hen's icon

Source Audio Awesome! I had no idea I could solve it this way, thanks for your help!

DaSheng Hen's icon

I've embarked on a new challenge: trying to drag and drop a font folder and apply the fonts. I've successfully retrieved the font names, but I'm unable to apply them. Here’s what I’ve tried.

Max Patch
Copy patch and select New From Clipboard in Max.

Source Audio's icon

Max uses only available system fonts,

and fonts in it's own application font path.

you can't drag them from anywhere and think max can use them.