getmusicbee.com

Support => Bug Reports => Topic started by: Acoustics on January 15, 2023, 02:53:28 PM

Title: Layout not adjusted depending on font sizes defined in virtual tags
Post by: Acoustics on January 15, 2023, 02:53:28 PM
In the Albums view, I use two virtual tags (named V_SinglesTitle and V_SinglesComment) to change specifically the layout of my custom compilation albums (named "Singles"). The tags don't change the default layout for the standard albums.

(https://i.ibb.co/tQGvpSx/20230115-dim-15h19-01.png)

The tag V_SinglesTitle:

Code
$If(<Album Artist>="Various Artists",$If(<Album>="(Singles)",[<Artist>"]   "{font: Segoe UI Semibold;Regular;10}<Title>,<Title>),<Title>)


The result:

(https://i.ibb.co/ZdCwCzN/20230115-dim-15h16-01.png)


Unfortunately the font Segoe UI Semibold is slightly truncated (see the "g" letters). The problem is that, in the Albums view, the lines are not adjusted depending on the font size specified in the virtual tag. Because the semibold font is slightly fatter than the regular font defined in the Views Configuration (and although they have here the same size in pt), it is truncated.

It's obvious with a bigger font (Segoe UI Semibold;Regular;14):

(https://i.ibb.co/dW2LjkX/20230115-dim-15h51-01.png)


I can use a smaller font size than 10 for the bold but then it will not be uniform / harmonious with the regular font.

This is a significant limitation of the configuration of the layout with virtual tags because this means that any font bigger or fatter than the (regular) font set in the Views configurations dialog will be truncated.
Title: Re: Layout not adjusted depending on font sizes defined in virtual tags
Post by: Steven on January 15, 2023, 08:09:07 PM
i do not plan to change that
Title: Re: Layout not adjusted depending on font sizes defined in virtual tags
Post by: Acoustics on January 17, 2023, 08:17:12 AM
I understand, I guess this would be complicated to manage from a development standpoint.

Anyway, I've solved the problem! In the Views Configuration dialog the size of the Segoe UI regular font was 9,75 pt (10 pt selected but the program reduces it to 9,75), but in the virtual tag I'd put a Segoe UI bold font of 10pt. By changing this size to 9,75 in the formula (I thought a so precise font size wouldn't be accepted) regular and bold fonts now match perfectly and the bold font is no longer truncated! Great!