Krypton-Suite / Standard-Toolkit

An update to Component factory's krypton toolkit to support .NET Framework 4.6.2 - 4.8.1 to .NET 6 - 8
BSD 3-Clause "New" or "Revised" License
388 stars 57 forks source link

[Bug]: Context, Menu, Status and Tool Strip fonts don't follow Krypton's #1297

Open PWagner1 opened 7 months ago

PWagner1 commented 7 months ago

Whilst testing, I encountered a bug whereby the Context, Menu, Status and Tool Strip fonts all don't follow Krypton's base font.

Font Bug

Expectation, for these controls to do the same as other Krypton controls.

Smurf-IV commented 7 months ago

Part of this is a duplicate (Menu's and Toolstrips) But it is expected because they are "Native" WinForm components.

So the fix (If it can be) would be the same as the "Integrate StatusStrip" designer option, so that it does not break backwards compatibility.

PWagner1 commented 2 months ago

@Smurf-IV & @giduac

Append this to backlog?

Smurf-IV commented 2 months ago

It's "An existing" winform thing, So I expect it to be in V90

PWagner1 commented 1 month ago

@Smurf-IV Is it possible to override the font to use KManager's BaseFont?

Smurf-IV commented 1 month ago

@Smurf-IV Is it possible to override the font to use KManager's BaseFont?

Might / Should be. Or whatever the theme is currently using for KContextMenu's at least.

PWagner1 commented 1 month ago

Hi @Smurf-IV & @giduac

What's Segoe UI, 12world?

image

Smurf-IV commented 1 month ago

Where did that image come from? It's bit cryptic without more info ? This is what I get for the BaseFont... image

PWagner1 commented 1 month ago

Where did that image come from? It's bit cryptic without more info ?

This was from the MenuStrip

Smurf-IV commented 1 month ago

?? image

PWagner1 commented 1 month ago

?? image

Weird thing is even if you try to alter the font on the MS, it won't change (at least for me).

Smurf-IV commented 1 month ago

Likewise, And it's not taking the Font from KManager either. So this is also part of this bug.

PWagner1 commented 1 month ago

Latest nightly build

image

Smurf-IV commented 1 month ago

Can you attach the zipped sln & project please (Do not include the bin or obj directories ...)

Smurf-IV commented 1 month ago

Latest nightly build

My views are from the alpha branch (Yesterday) and using the Toolkit examples

PWagner1 commented 1 month ago

Here's the example I've been using

TestKryptonApp.zip

PWagner1 commented 1 month ago

What is this?

    this.menuStrip1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World);
Smurf-IV commented 1 month ago

I get the "world" as well: image So it must be project based !

PWagner1 commented 1 month ago

This might be useful https://learn.microsoft.com/en-us/dotnet/api/system.drawing.graphicsunit?view=net-8.0