[JW Lua] FontName on accidentals returns "Times New Roman" - why?
Chris
marcel.denio at gmail.com
Tue May 31 14:53:52 CEST 2016
Hello Robert
I think "CreateAccidentalMods" (FCNoteEntry) is missing but there is a
second solution :
--------------------------------------
function checkAccidentals(noteEntry)
local accidentalmods = finale.FCAccidentalMods(noteEntry)
accidentalmods:LoadAll()
for am in each(accidentalmods) do
if am:GetUseCustomFont() then -- custom font
print("custom font : " .. am:GetFontName())
else -- default font
local fontprefs = finale.FCFontPrefs()
fontprefs:Load(finale.FONTPREF_MUSIC)
local defaultFont = finale.FCFontInfo()
fontprefs:GetFontInfo(defaultFont)
print("default font : " .. defaultFont:GetName())
end --// end if
end --// end for each
end --// end checkAccidentals()
--------------------------------------
Best regards
Chris
More information about the JWLua
mailing list