Krypton-Suite / Standard-Toolkit

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

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

Open PWagner1 opened 10 months ago

PWagner1 commented 10 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 10 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 4 months ago

@Smurf-IV & @giduac

Append this to backlog?

Smurf-IV commented 4 months ago

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

PWagner1 commented 4 months ago

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

Smurf-IV commented 4 months 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 4 months ago

Hi @Smurf-IV & @giduac

What's Segoe UI, 12world?

image

Smurf-IV commented 4 months 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 4 months ago

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

This was from the MenuStrip

Smurf-IV commented 4 months ago

?? image

PWagner1 commented 4 months 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 4 months ago

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

PWagner1 commented 4 months ago

Latest nightly build

image

Smurf-IV commented 4 months ago

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

Smurf-IV commented 4 months ago

Latest nightly build

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

PWagner1 commented 4 months ago

Here's the example I've been using

TestKryptonApp.zip

PWagner1 commented 4 months 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 4 months ago

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

PWagner1 commented 4 months ago

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