[JW Lua] Finale crashes with finenv.UI():IsFontAvailable(...)

Jan Angermüller jan at angermueller.com
Thu Nov 26 16:37:22 CET 2015


Jari,

I noticed the a Finale crash on Finale 2014d/Windows 10 with the 
following code:

local tempname=finale.FCString()
tempname.LuaString="Century Schoolbook L ItalicItalic"
print(finenv.UI():IsFontAvailable(tempname))

A font with this name is (of course) not available and the font name 
with ItalicItalic at the end was only the result of a concatenation bug 
I had. But the resulting crash was rather unexpected.
The script doesn't crash with any other silly font names. Probably you 
are doing any Bold/Italic string processing internally which doesn't 
expect two key words in a row.

Jan




More information about the JWLua mailing list