INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: A couple of strange problems with PnP Skins  (Read 224 times)

EnglishTiger

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1115
A couple of strange problems with PnP Skins
« on: December 15, 2024, 09:46:30 am »

I'm experiencing a couple problems with some Playing now Popup Skins when it is installed on my Win11 NUC, but neither of them occur on my Mac-Mini.
Those PnP Skins are set up to use the Verdana Font at a Font Size of 12 in every '<ContentItem Type="text"' instruction; but whilst the Mac is displaying those text lines using at the correct font size on the Win PC they are being displayed at a size which is about the equivalent to a font size of 6.
MC on both the Win and Mac PC's is using the Verdana Font, with a Font Size of 10 on the Win PC and 12 on the Mac, plus on both PC's the PnP is sitting on top of part of the Playing Now View List Section which gives me a visible clue to whether or not the PnP is using the Font Size it is supposed to be using or not.
As the attached compound image reveals not only is the text for the PnP when used on the Win PC, the upper part of the image, smaller than the text in the Playing Now List Section it is also smaller than the text for the PnP when used with the Mac PC, the lower part of the image.

This one of the '<ContentItem Type="text"' instructions used to display text in the PnP

Code: [Select]
<!-- This line displays the Work field in Classical Mode or the Name field in Non-Classical Mode -->
<ContentItem Type="text" Name="T1-L1" X="112" Y="20" Width="430" Height="13" FontFace="Verdana" FontSize="12" HAlign="center" Text="If(Or(IsEqual([genre],Renaissance,0),IsEqual([genre],Baroque,0),IsEqual([genre],Classical,0),IsEqual([genre],Romantic,0),IsEqual([genre],Modernist,0),IsEqual([genre],Postmodernist,0),IsEqual([genre],Contemporary,0)),Work: [Work],[Name])" Tooltip="If(Or(IsEqual([genre],Renaissance,0),IsEqual([genre],Baroque,0),IsEqual([genre],Classical,0),IsEqual([genre],Romantic,0),IsEqual([genre],Modernist,0),IsEqual([genre],Postmodernist,0),IsEqual([genre],Contemporary,0)),Work: [Work],Name: [Name])" TrackOffset="-1"/>

Note - The wrong fontsize problem also happens when MC is using a different font to the PnP and it is also happens regardless of which Std. View Skin MC is using.

The other problem I've encountered is that the PnP is causing discolouration of any text displayed in the PNP and any part of the Main MC UI on the Windows Platform.
This discoloration is more obvious when using a Std. View Skin that uses a very light coloured text an a dark background, and is at it's worst with my ET Black Card Skin which uses white text on a black background.
If I use MC32 I only see any discoloured text when MC is using a very small font size, but with MC33, regardless of the font size the MC UI is using I'm seeing text that has a very obvious green tint.

P.S. There is very easy way for anyone to see this text discolouration in action, all you have to do in Playing Now is switch MC33 to Display CoverArt + Lyrics and then switch MC into Display View which always uses White Text on a Black Background regardless of which Std. view Skin MC is using.



Craig/CNCB - If you need them to help work out what is going wrong I've attached a link that will let you download the PnP Skin in the images and 1 to download m ET Black Card Std. View Skin

https://englishtiger.uk/downloads/popups/ET%20Ultra%20Slider%203-Tracks.zip

https://englishtiger.uk/downloads/popups/ET%20Black%20Card.zip
Logged
Apple Mac Mini Desktop Computer with M4 Pro chip with 12 core CPU and 16 core GPU: 24GB Unified Memory, 512GB SSD Storage, Gigabit Ethernet, 3 Thunderbolt5 + 2USBC ports.

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3122
Re: A couple of strange problems with PnP Skins
« Reply #1 on: December 16, 2024, 09:57:10 am »

This is what it looks like for me.  The font size seems reasonable and I don't notice discoloration when it is drawn on the screen.  Make sure you don't have different scaling applied to the main UI and/or PNP. 

We're not sure yet about the exact differences in text drawing between Mac and Windows, but Mac does seem to draw the same font size a little bigger.  You can use the <Windows> sub element for each text item to specify a different font size to make it closer.

Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3122
Re: A couple of strange problems with PnP Skins
« Reply #2 on: December 16, 2024, 10:41:24 am »

I think I found why the text is drawn smaller on Windows but I still have to test on Mac.  My apologies to you and marko (and any other skin creators using custom font sizes), but you probably will have to tweak all the font sizes if you designed the skin in Windows.
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

EnglishTiger

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1115
Re: A couple of strange problems with PnP Skins
« Reply #3 on: December 16, 2024, 02:38:49 pm »

CNCB - Over the years I've always noticed the opposite in terms of Font Size. Apple text is always smaller than on Windows and a good number of other platforms when the same Font, Font Size and VDU are being used. i.e. Text in Verdana at Font size 12 on the Mac is almost identical in actual size as Verdana at Font Size 10 on the Windows, Dec Vax, Dec PDP and Honeywell platforms.

However while checking to see if PnP's were doing the right thing on the Mac I have become aware of a discrepancy between how MC Displays Lines that contain images and text, i.e. in the Tree and the Playing Now List Section.
On the Win platform the images and text are vertically centred in the line but on the Mac the images are centred in the Line but the Text is aligned to the top of the line not its centre when Retina Mode is on; but when Retina Mode is switched on the lines and the images increase in size but the text does not and remains aligned to the top of the line.
Logged
Apple Mac Mini Desktop Computer with M4 Pro chip with 12 core CPU and 16 core GPU: 24GB Unified Memory, 512GB SSD Storage, Gigabit Ethernet, 3 Thunderbolt5 + 2USBC ports.
Pages: [1]   Go Up