beppeartz
(Giuseppe Salerno)
March 30, 2025, 5:42pm
1
Hello,
I wanted to add a vendorID value in this python script but i cannot find it.
If i add : font.vendorID= "RSZ"
I get this error:
Traceback (most recent call last):
File "AddRszFontInfo.py", line 18
font.vendorID= "RSZ"
^^^^^^^^^^^^^
AttributeError: 'NSKVONotifying_GSFont' object has no attribute 'vendorID'
Any idea?
SCarewe
(Sebastian Carewe)
March 30, 2025, 7:02pm
2
vendorID = GSFontInfoValueSingle()
vendorID.key = "vendorID"
vendorID.value = "MYID"
Font.properties.append(vendorID)
Font.properties["vendorID"] = "MYID"
1 Like
beppeartz
(Giuseppe Salerno)
March 30, 2025, 9:50pm
6
Thanks Georg.
following your script I add that: font.properties["License URL"] = "https://.....
but on the font info i get a red !
what that means?
beppeartz
(Giuseppe Salerno)
March 30, 2025, 11:02pm
8
but if I add manually I don’t get any red!
If I add through python the red! appears
SCarewe
(Sebastian Carewe)
March 30, 2025, 11:09pm
9
You used the key License URL
. Use the key licenseURL
.
Font.properties["licenseURL"] = "my.url"
1 Like
beppeartz
(Giuseppe Salerno)
March 30, 2025, 11:38pm
10
ohhhh thanks Sebastian! It works
The UI shows the description of the key, not the key itself.
The easies way to get to the key and the proper structure is by setting that property in the UI and then print(Font.properties)
.
1 Like