Help - Search - Members - Calendar
Full Version: problems on customizing FofR configuration v0.6
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
adrianmak
my foobar2000 is 0.9.4.2
FofR configuration is 0.6

I added a feature that using different font of different genre.
Simply speaking, if genre is JPOP , japanese font will be used to display tag info.
if genre is CPOP , chinese font will be used and so do KPOP (korean song)

Here is my work I did.

I added global varaible in playlist view
$set_global(font_zh,Microsoft JhengHei)
$set_global(font_kr,Malgun Gothic)
$set_global(font_jp,Meiryo)
IPB Image


Under Panel UI, 'group by' and 'item display', I added
$puts(font_type,Microsoft Sans Serif)
$ifgreater($strstr(%genre%,CPOP),0,$puts(font,$get_global(font_zh)),)
$ifgreater($strstr(%genre%,JPOP),0,$puts(font,$get_global(font_jp)),)
$ifgreater($strstr(%genre%,KPOP),0,$puts(font,$get_global(font_kr)),)

IPB Image
IPB Image

Everything got fine. however when I highlight a track or highlight a album all text got blank
(This problem only occur on JPOP songs, CPOP, KPOP, EPOP has no such problem)

Here is JPOP
IPB Image
IPB Image

Here is KPOP
IPB Image

Here is CPOP
IPB Image

What are the settings I was missed or misconfigured ?
shakey_snake
In SCPL, if the font used is too tall to fit in the row, it does not draw it.
Apparently, your japanese font is too tall, and thus nothing is drawn.

you may want to change your code to something like this:
CODE
$ifgreater($strstr(%genre%,CPOP),0,$puts(font,$get_global(font_zh)),)
$ifgreater($strstr(%genre%,JPOP),0,
$puts(font,$get_global(font_jp))
$puts(fontSizeSelected,8)
,)
$ifgreater($strstr(%genre%,KPOP),0,$puts(font,$get_global(font_kr)),)
adrianmak
QUOTE(shakey_snake @ May 17 2007, 11:42) *

In SCPL, if the font used is too tall to fit in the row, it does not draw it.
Apparently, your japanese font is too tall, and thus nothing is drawn.

you may want to change your code to something like this:
CODE
$ifgreater($strstr(%genre%,CPOP),0,$puts(font,$get_global(font_zh)),)
$ifgreater($strstr(%genre%,JPOP),0,
$puts(font,$get_global(font_jp))
$puts(fontSizeSelected,8)
,)
$ifgreater($strstr(%genre%,KPOP),0,$puts(font,$get_global(font_kr)),)



you said that "... font used is tool tall to fit in the row ....". Is that mean the font height is too tall to fit in the wor height ? If this is the case, no matter I increase the row height to larger in SCPL, the selected track or album of JPOP still showing blank.

Like I set the row height to 28. I guess it should be tall enough to hold selecte japanese font height
IPB Image

However the out come is the selected track still got blank
IPB Image
shakey_snake
wow, you sure are using an old version of PanelsUI.

Update to the most recent and see if problems persist.
adrianmak
my panel ui is version 0.8.1 beta (mar 15 2007)

I knew from FofR blog and said that panel ui 0.9 and 0.10 is not compatible with FofR configuration 0.6 and upgrade to 0.7 is necessary.

I'm not sure does FofR configuration 0.7 compatible with panelui 0.12 and 0.11
shakey_snake
it is.
adrianmak
I just upgraded FotR configuration to 0.7 and PanelsUI to 0.12


Without adding statement
$puts(fontSizeSelected,8) but just increasing the row height , for example 28 in

IPB Image

The selected track or album of japanese songs still showing blank. You may see that the row height is increased and should tall enough to fit for japanese font.

IPB Image
shakey_snake
maybe the japanese font doesn't have a bold typeface? (since selection text is bolded)
adrianmak
QUOTE(shakey_snake @ May 17 2007, 22:04) *

maybe the japanese font doesn't have a bold typeface? (since selection text is bolded)



if I put $puts(fontSizeSelected,8) this after the line
$ifgreater($strstr(%genre%,JPOP),0,$puts(font,$get_global(font_jp))

the selection text of japanese songs are shown. Therefore I don't think it is the problem of missing bold typeface.


ps FotR configuration by defaut set variable fontSizeSelected to 9
shakey_snake
So you didn't try my original suggestion, but it does work? headbang.gif
adrianmak
QUOTE(shakey_snake @ May 17 2007, 22:19) *

So you didn't try my original suggestion, but it does work? headbang.gif


Your solution works.

The point is , the default FotR configuration font size is a bit small for me and i want to larger the font size a bit.
That's why I increased the row height but didn't work.

I guess there may some other settings control the display of the text but not just simply increase the row height.

Why do I say that because I made a test.
I changed the default variable IDfontSize (global non selected font size) from 8 to 10 and increase the row height to 20. All songs (cpop, kpop, kpop, epop) text are blank.
shakey_snake
well, you'll find your answer somewhere in this line of code:
CODE
$puts(aligntrack,$alignabs($eval($get(textleft)+$get(colwtrackno)),0,$ifequal($getpvar(artside),0,$eval(%_width%-{$get(textleft)+$get(colwtrackno)+35+$if(%_focused%,50,0)}),$eval($get(rightpad)-{$get(textleft)+$get(colwtrackno)+35+$if(%_focused%,50,0)})),$get(rowheight),left,middle))


But honestly, that's too many nonsensical variables for me to try to break down.
You'd be better off asking FofR at his forum.
adrianmak
QUOTE(shakey_snake @ May 17 2007, 22:33) *

well, you'll find your answer somewhere in this line of code:
CODE
$puts(aligntrack,$alignabs($eval($get(textleft)+$get(colwtrackno)),0,$ifequal($getpvar(artside),0,$eval(%_width%-{$get(textleft)+$get(colwtrackno)+35+$if(%_focused%,50,0)}),$eval($get(rightpad)-{$get(textleft)+$get(colwtrackno)+35+$if(%_focused%,50,0)})),$get(rowheight),left,middle))


But honestly, that's too many nonsensical variables for me to try to break down.
You'd be better off asking FofR at his forum.


never mind. you help me alot actually. I'll ask the arthour.
FofR
Make sure you change $get(rowheight) to the new height.
It's a redundant variable because it could just be %_height%. I need to fix that for the next release.

Look for this:
// Row Height of SCPL Item Display
$puts(rowheight,17)

and change it to:
// Row Height of SCPL Item Display
$puts(rowheight,%_height%)
adrianmak
many thanks, FofR.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.