Jump to content
shineworld

Continuity solution of the Default font Sydnye vs. Athens

Recommended Posts

Hello everyone,
after years I decided to migrate a big project from Sydney 10.4.2 to Athens 12.2 latest version.

Most things went smoothly, others required some work in the code but it works fine.

I am left with one problem and one solution to find.
In Sydney the default font used was “Tahoma 8” and the entire software was reliant on it and its features, which must often take advantage of every available pixel in the screen.

Now when I create a new form or frame or add an object, I always end up with “Segoe UI 9” as the default font which returns text that is wider in width and breaks the continuity of the existing form/frame hundreds for me.

How can I make sure that the old “Tahoma 8” is used as the default font during development and execution ?
Many controls have multiple fonts and it is nerve-wracking to have to go searching for each “Font” property within them to change them by hand each time.

 

Thank you.

 

Share this post


Link to post

Good question. I don't know if is possible ... the defaults should be written by desgin packages ... , but the first thing that I think is to change the default font of TApplication at the start of program , so at runtime time every components that have the "ParentFont" property at true still had that font.

 

But this is only a temporary adaption: when you'll edit the form, I think the all components will change cause new default font.

 

May be some regsiter hack from a dummy design package can help .... (like Register(TForm, MyNewDefaultForm)) ... but I don't know if it's possible and how to do that.

Share this post


Link to post

You can change it on a new form and leave parentfont to true on the components you drop. You should accept the new default font. On newer monitors event font size 9 is a bit hard to read. 

Share this post


Link to post

Our applications run on embedded panel pc which have fixed inches size and are all FullHD, so HDPI is not used.

I've tried also to change DefaultFont.Name := 'Tahoma' of VCL.Graphics in first steps of DPR but nothing changed.

Edited by shineworld

Share this post


Link to post
25 minutes ago, shineworld said:

Our applications run on embedded panel pc which have fixed inches size and are all FullHD, so HDPI is not used.

I've tried also to change DefaultFont.Name := 'Tahoma' of VCL.Graphics in first steps of DPR but nothing changed.

Of ourse the font should exists ...

 

This is the default font setting.

 

image.thumb.png.5ef72135da8414264e8eb8b9e18757c6.png

 

 

This is the modified setting from DPR, without changing nothing in the source or design.

image.thumb.png.f3fdc293e8edc7d3e5677321be67924e.png

 

 

  • Like 1

Share this post


Link to post

Woe is me, I had modified the global DefaultFont var but not the Application.DefaultFont.Name var.
Thanks for help !!!

Share this post


Link to post
17 minutes ago, shineworld said:

Woe is me, I had modified the global DefaultFont var but not the Application.DefaultFont.Name var.
Thanks for help !!!

Take care about that the Form, I dont'know if is with new version of IDE, have the "ParentFont" set to FALSE ... In this case the "Application.Default....' is not working 😞

 

The images come from an old base project that I use for quick test and I see that "ParentFont" value is in BOLD, meaning that is not the default.

 

Create new App, the Form has this property set to false ....

Edited by DelphiUdIT

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×