[JW Lua] FCNoteheadMod():GetFontInfo() returns empty font size if default font used
Jan Angermüller
jan at angermueller.com
Thu Apr 9 12:31:45 CEST 2015
Jari,
when I call FCNoteheadMod:GetFontInfo(fontinfo) and the FCNoteheadMod
doesn't have a custom font
(i.e. it uses the default music font), the fontinfo object will get the
default font name, but its font size will be zero
(i.e. fontinfo.Size=0)
I don't know if this was intended. If it was, maybe the default font
name should be empty as well
or even the fontinfo should be nil. Although it would be easier for the
developer, if FCNoteheadMod:GetFontInfo(fontinfo) returned the default
music fontinfo.
In the documentation it says that only FCNoteheadMod:GetFontName() will
be empty, if it is a custom font.
The other FCNoteheadMod:GetFunctions are not mentioned.
Best regards,
Jan
More information about the JWLua
mailing list