$if(%_trackinfo_notrack%,Stopped,$align(left,top)$font(forte,15,shadow,255-255-255)%title%$char(10)$font(,12,,64-0-0)%album% ['['%date%']']$char(10)$rgb(0,64,0)%artist%$char(10)$rgb(64,0,0)%composer%test$char(10)$align(right,bottom)$font(Verdana,10,,0-0-0)%__codec%@%__bitrate%$char(10)[%playback_time% / ]%length%$align(left,bottom)$font(Wingdings 2,13,,)$if(%rating%,$select(%rating%,$rgb(155,0,0)ê,êê,êêê,êêêê,$rgb(0,155,0)êêêêê),$rgb(155,155,155)ê))
Is it possible to use the scrolling feature only on a certain portion of the trackinfo?
hey guys...I have modified trackinfo a little bit to support mixing of different fonts/styles.
I had to remove some stuff (scrolling, alignment support), but otherwise this is the same as the original. This is my first plugin in for foobar, so beware
%album artist% - $font(tahoma,14,,0-0-0)%title%
1) No Default Font. Absolutely no text will appear unless a $font() is defined. So if you have code such as:Code: [Select]%album artist% - $font(tahoma,14,,0-0-0)%title%
2) Inconsistent Font Size. If I use the function $font(tahoma,8,,0-0-0), text appears significantly smaller than when I choose Tahoma 8pt in other components.
3) Broken $rgb(). Both colors in the format of $rgb(0,0,0) and 000000 no longer appear and are displayed as normal text. The color can be redefined with a $font() command but this requires everyone to rewrite their existing code. Also, a simple $font(,,,0-0-0) does not work as apparently the $font() function requires an actual font to be specified.
4) Broken $tab(). The use of $tab() appears to simply bump the text to the next tabstop instead of the allignment behavior found in other foobar components. I am unable to figure out a way to right-allign text using this version of trackinfo.
$align(left,top)$font(tahoma,11,,0-0-0)This text will appear at the top left$align(right,bottom)$font(tahoma,11,,0-0-0)This text will appear at the bottom right
i would like to be able to change only for example font, size or style, not everything ... does $font(,11,,) work like this? maybe you could add support for multiple $font functions with different arity, like $font(fontname), $font(fontname, style), $font(fontname, style, size). also $size and functions for quick bold / italics / underline would be great - maybe as $b() - or $b(text to be bold).
ability to disable / enable antialiasing or cleartype. some fonts work well only without it. this could be set in the configuration dialog
when i change tracks (or during normal playback), when foobar is moving onto new song, there's registrable period of time when trackinfo thinks (probably properly), that there's no song playing - so it reacts to this (redraws itself) with the formatting having no song info available (which in my case means mostly that i do not output anything). this is distracting me *a lot*. could you find some workaround for this, please?
extra feature would be to be able to 'measure' text's width (in pixels or % of available space), would that be possible? something like $fontwidth(fontname,style,size,text to measure) or $fontwidth(text to measure using current style).
Is this version of trackinfo a branch or just a update in features?Any links to it? Any requirements?
i would say it's more of a branch, as it takes different approach to text positioning and other major issues. link has been posted by terrestrial, the author. it's here. it needs some later 0.9.x version of foobar.there's also another work-in-progress track info project here, which is more focused on bug fixing (at the moment) the previous official track info panel.
with the current implementation you could do some interesting stuff though, like this:
it would be possible to do quite a few effects including any-size line spacing, pseudo text shadows etc.
that size measuring - i would use it to detect if i can fit some text into the panel (for example when i show some, possibly long, text in one line only). if not, i could skip some parts or show it with smaller font (which is possible with your mod )
$align(left,)Text line one.$char(10)$align(right,)Text line two.$char(10)
$ifgreater($len(%artist%%title%%album%%date%),45,$font(,12,Bold,),$font(,16,Bold,))$align(left,)$rgb(233,233,233)$if(%artist%,%artist% $rgb(0,128,255)$char(47)$rgb(233,233,233) ,)$if2(%title%,)$ifgreater($len(%artist%%title%%album%%date%),45,$char(10)$align(right,bottom),$align(right,))$if($strcmp($left(%path%,7),http$char(58)$char(47)$char(47)),,$ifgreater($len(%artist%%title%%album%%date%),82,$font(,9,,),$font(,,,))$rgb(180,180,180)$if2(%album%,)$if(%date%, $rgb(0,128,255)$char(40)$rgb(180,180,180)%date%$rgb(0,128,255)$char(41),))
I received this failure notice from FB2K_v0.9.3b4:Failed to load DLL: foo_uie_trackinfo_mod.dllReason: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. The last version (foo_uie_trackinfo_v0. has no problems loading. Was this new mod version created differently? Generally, I get this failure notice due to not having the proper library files. If so, can you let me know which library files are needed? Thank you.