2016-06-14, 08:45 AM
(This post was last modified: 2016-06-14, 09:14 AM by NumberFive.)
So after upgrading to Windows 10 I noticed that the font in NextPVR (DroidSans) would render in bold everywhere. I much prefer how it renders in Windows 7, which is as the skin is designed to, with bold for titles and normal weight for descriptions. Normal weight fits more on screen, and looks very elegant and readable. It also bugged me that there was a bug.
The fix is:
1) Install the DroidSans and DroidSans-Bold fonts as system fonts. To do so, right click the font files, select "Install".
2) Edit Global.xml in the skin folder, changing all instances of font="DroidSans" to font="Droid Sans". Note the space that is added.
I've attached an updated Global.xml, and example pictures.
Perhaps this could be added to the next installer?
For information: It appears that the error arises from a change in the way Windows handles font families. It is now particular in how it looks for font weights/styles. When using a non-system font, it seems to default to the first approximate match it finds in the folder. It is looking for the Droid Sans font name, and will find it no matter the font's filename. However, if the bold weight font is first in the file order, it uses that for everything. For example, if A.ttf is Bold, and B.ttf is Normal, it will render everything in bold. Swap the file names, and everything renders in Normal. It appears that DroidSans-Bold.ttf is considered to come before DroidSans.ttf. However, it doesn't appear to proceed to find the bold weight after finding the normal weight. The only solution I have found is installing as system fonts. Note then it is important that Global.xml uses the correct font name for the font family, i.e. Droid Sans with a space.
The fix is:
1) Install the DroidSans and DroidSans-Bold fonts as system fonts. To do so, right click the font files, select "Install".
2) Edit Global.xml in the skin folder, changing all instances of font="DroidSans" to font="Droid Sans". Note the space that is added.
I've attached an updated Global.xml, and example pictures.
Perhaps this could be added to the next installer?
For information: It appears that the error arises from a change in the way Windows handles font families. It is now particular in how it looks for font weights/styles. When using a non-system font, it seems to default to the first approximate match it finds in the folder. It is looking for the Droid Sans font name, and will find it no matter the font's filename. However, if the bold weight font is first in the file order, it uses that for everything. For example, if A.ttf is Bold, and B.ttf is Normal, it will render everything in bold. Swap the file names, and everything renders in Normal. It appears that DroidSans-Bold.ttf is considered to come before DroidSans.ttf. However, it doesn't appear to proceed to find the bold weight after finding the normal weight. The only solution I have found is installing as system fonts. Note then it is important that Global.xml uses the correct font name for the font family, i.e. Droid Sans with a space.
"It's better than a box!"