Author Topic: Layout not adjusted depending on font sizes defined in virtual tags  (Read 716 times)

Acoustics

  • Jr. Member
  • **
  • Posts: 56
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.



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:




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):




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.
Last Edit: January 15, 2023, 03:29:44 PM by Acoustics


Acoustics

  • Jr. Member
  • **
  • Posts: 56
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!