Skip to main content
Inspiring
March 8, 2018
Answered

Font search naming

  • March 8, 2018
  • 1 reply
  • 433 views

Hello,

Im making progress on a script to search for fonts. Someone types a font in, and it shows them where its used.
Though, is there a way to have the user only need to type in "Arial" instead of "Arial-MTBold" or other versions of weight and italics. I would prefer to only search by the family i guess.

Thanks!

This topic has been closed for replies.
Correct answer Tomas Sinkunas

There is a property fontFamily:

textDocument.value.font // Arial-MTBold

textDocument.value.fontFamily // Arial

1 reply

Tomas Sinkunas
Tomas SinkunasCorrect answer
Legend
March 8, 2018

There is a property fontFamily:

textDocument.value.font // Arial-MTBold

textDocument.value.fontFamily // Arial

Inspiring
March 8, 2018

Thank you. That did it.