[JW Lua] v0.46 and FCFontPrefs/FCFontInfo not working ?

Jan Angermüller jan at angermueller.com
Sat Mar 18 21:19:10 CET 2017


Hi Jari,

FCFontPrefs seems to not work properly (or FCFontInfo?).
No matter what FCFontPref I load, I always get "Times New Roman" as 
result, but it should (usually) be "Maestro".

Code snippet:
local fontprefs=finale.FCFontPrefs()
fontprefs:Load(finale.FONTPREF_MUSIC)
local fontinfo=fontprefs:CreateFontInfo()
print(fontinfo.Name)

Prints "Times New Roman" in Fin25, and "Maestro" in Fin2014.
Same result for example with fontprefs:Load(finale.FONTPREF_CLEF) and 
others.

Best,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20170318/43b7bb2b/attachment.html>


More information about the JWLua mailing list