Classic Shell
http://classicshell.net/forum/

Problems changing font size in skin
http://classicshell.net/forum/viewtopic.php?f=7&t=4703
Page 1 of 1

Author:  Classic Shell User [ Sat Jun 06, 2015 3:32 pm ]
Post subject:  Problems changing font size in skin

Hi,

I am trying to change the font size in the Luna Start Menu skin as described in this thread and in this official reference. I want to make the Start Menu font look like it does in the names of my desktop, my Explorer icons, and the system menus, which are in Tahoma 8 in a patched XP Luna theme made for Windows 7.



But when I edit the skin in ResHacker to have the font entries read "Tahoma",normal,-8 the menu ends up looking like this with the letters too small:



If I change it to "Tahoma",normal,-9 the letters are too big:



(NB: Those are customized XP icons I put on the folders and menu items. I am not actually running XP, as you can see.)

The file does not seem to recognize a setting of 8.5 or anywhere else in between whole numbers. I've tried changing the size number to have a minus sign and no minus sign. No matter what, I cannot get the menu to match my desktop, menus, and windows, and it is getting frustrating.

I feel like Goldilocks trying to get the text not too big or too small, but "just right". ;)

Why does Tahoma 8 look different in Explorer versus Classic Start Menu? Is this a limitation of the program/skin, or am I doing something wrong? What is the significance of the minus sign in the menu font entries versus the user name font setting, which is listed right now as "Trebuchet MS",bold,20 and looks exactly as it should on the tin?

Skin file and Menu Settings XML backup file are attached for you to browse through and see what's up. Thanks in advance.


Attachments:
Menu Settings.xml [18.38 KiB]
Downloaded 970 times
Windows XP Luna.skin [912 KiB]
Downloaded 808 times

Author:  Ivo [ Sat Jun 06, 2015 4:16 pm ]
Post subject:  Re: Problems changing font size in skin  Topic is solved

Positive numbers specify the cell height of the font and negative numbers specify the character height: https://msdn.microsoft.com/en-us/library/dd183499(v=vs.85).aspx

The start menu expects the size to be specified in points (1 point is 1/72 inch). The formula used to convert the height to pixels is:
pixel height=DPI * point height / 72
However there is no standard how to handle the rounding. The start menu rounds to the smaller number and maybe Windows rounds to the nearest number. That can account for one pixel difference in the font height.

If you have replaced the system menu font, you can remove the font setting from the skin which will make it use the system font.

Author:  Classic Shell User [ Sat Jun 06, 2015 6:14 pm ]
Post subject:  Re: Problems changing font size in skin

Thanks! It worked! I just commented out (rather than deleted) all the lines where it says "font". Now the text matches the menus just like it should! :D

EDIT: But how can I make the right side in the 2-column layout bold, like it was in XP, and not have it mess up the sizes again? I tried entering a Main2_font line and it made the right-side column text oversized.

Right now I have this for font settings (other items like text color and bitmap/separator options are omitted for space and clarity):

Code:
;MAIN MENU SECTION - describes the menu portion of the main menu

Main_large_icons=1
;Main_font="Tahoma",normal,0
;Main2_font="Tahoma",bold,0


[SMALL_ICONS]
Main_large_icons=0
;Main_font="Tahoma",normal,0
Main_arrow=0

[LARGE_FONT]
;Main_font="Tahoma",normal,0
;Main2_font="Tahoma",bold,0
;Submenu_font="Tahoma",normal,0
Main_text_padding=1,0,8,2,100%
Submenu_text_padding=1,0,8,2,100%


As you can see I have a (commented-out) Main2_font line that I tried earlier, but it messed everything up again even though I entered zero for the size thinking this would just leave it at system default. Would I have to just keep the right-side column in normal weight if I want the menu text to inherit the system settings? Or is there a setting I can type in to make the right-side column Tahoma 8 bold without messing up the size?

Author:  Ivo [ Sun Jun 07, 2015 3:51 pm ]
Post subject:  Re: Problems changing font size in skin

No, not possible to partially customize the system font (like make it bold).
The next version will support fractional font sizes like 8.5.

Author:  Gaurav [ Sun Jun 07, 2015 10:15 pm ]
Post subject:  Re: Problems changing font size in skin

See this skin: viewtopic.php?f=17&t=4730

Author:  Gaurav [ Sun Jun 28, 2015 6:10 am ]
Post subject:  Re: Problems changing font size in skin

The new version of Classic Shell, version 4.2.2 is out in which the font in the skins can have fractional size like 8.5, 9.5..

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/