[JW Lua] FCNoteheadMod():GetFontInfo() returns empty font size if default font used

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Thu Apr 16 19:48:01 CEST 2015


Jan,

I'll look into it and see if I can fix this inconsistency when using the 
default font (in both FCNoteheadMod and FCAccidentalMod). I think the 
reason why the default font name works is coincidental because the font 
ID is 0 (pointing to the document's default font).


Bet regards,

Jari Williamsson


On 2015-04-09 12:31, Jan Angermüller wrote:
> 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
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>






More information about the JWLua mailing list