[JW Lua] FCFileInfoText and ... more info

Jan Angermüller jan at angermueller.com
Thu Mar 26 15:52:48 CET 2015


Jari,

just as I assumed in my first email, FCFileInfoText must not add the 
Enigma font tags to the string.
This short code snippet shows what happens if you have a text block that 
includes the title tag:

     local fileinfo=finale.FCFileInfoText()
     fileinfo:LoadTitle()
     fileinfo:SaveAsTitle()

Although nothing is actually changed - it's only resaved -, the text 
block displays the Enigma tags on the score (!) after running the 
script. See screenshot from the score view.

All the best,
Jan

Am 20.03.2015 um 13:03 schrieb Jan Angermüller:
> Jari,
>
> when I create the strings from FCFileInfoText, for example 
> LoadTitle(), I get a string like
>
> ^font(Times New Roman,4096)^size(12)^nfx(0)Song Title
>
> Are you sure that this is what Finale produces internally from the 
> ^title() tag ?
> Because this would mean that Finale uses the default text font / font 
> size which in this case is Times/12.
>
> For example, if I create the text string of a large score title in 
> font size *24 with *FCPageText:CreateTextString() I get:
>
> ^font(Times New Roman,4096)^size(*24*)^nfx(0)^title()
>
> If I substitute the ^title() with what FCFileInfoText():LoadTitle() 
> produces, it would lead to:
>
> ^font(Times New Roman,4096)^size(*24*)^nfx(0)^font(Times New 
> Roman,4096)^size(*12*)^nfx(0)Song Title
>
> which would print as a title in font size *12*.
> Could it be that the font information is not necessary in the 
> FCFileInfoText strings,
> I.e. that LoadTitle() should only return a string "Song Title" with no 
> Enigma tags ?
>
> Best regards,
> Jan
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu


-- 
Jan Angermüller
Jevenstedter Str. 80
22547 Hamburg
Tel. 040 - 28 94 84 82
www.angermueller.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20150326/721f3556/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fcfileinfotext font tags.jpg
Type: image/jpeg
Size: 29107 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20150326/721f3556/attachment.jpg>


More information about the JWLua mailing list