Unplanned
Last Updated: 24 Apr 2024 08:22 by ADMIN
Bert
Created on: 24 Apr 2024 07:59
Category: UI for WinForms
Type: Bug Report
1
Font size should not be scaled when the application is dpi unaware
Exceptions

Top Level Exception
Type:        System.OverflowException
Message:     Arithmetic operation resulted in an overflow.
Source:      TelerikCommon
Stack Trace: at Telerik.WinControls.NativeMethods.GetMonitorDpi(Screen screen, DpiType dpiType)
   at Telerik.WinControls.VisualElement.GetScaledFont(Single scale, Font fontToScale)
   at Telerik.WinControls.UI.LightVisualElement.CreateTextParams()
1 comment
ADMIN
Nadya | Tech Support Engineer
Posted on: 24 Apr 2024 08:22

Hello, Bert,

Thank you for reporting this.

As workaround: Set the static RadControl.EnableDpiScaling property to false.

Regards,
Nadya | Tech Support Engineer
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com