Recent

Author Topic: Another Default Font Question for MacOS  (Read 853 times)

Wilko500

  • Full Member
  • ***
  • Posts: 132
Another Default Font Question for MacOS
« on: January 26, 2024, 11:22:17 pm »
After having searched the web and read many "default font" posts here I have not found an answer so another default font question.

I have several buttons/Edits on a form. All started with "system default" ie I did not specifically choose a font when inserted on the form.  Later I changed some to see if I could improve the readability of the form. Then I wanted to change them back to the default settings.  But how?

Using the Object Inspector > font dialogue does not help unless the font has been specifically set by me because in most cases the font dialogue does not highlight the font family or font name but does highlight the size. I had hoped that if I inserted a new button and then looked via Object Inspector I would see what the default font was but it is not highlighted.

If I ShowMessage the Button1.Font.Name I get "default".  Not helpful.
If I ShowMessage the Button1.Parent.Font.Name I get "Apple System Ui Font".  Not helpful.

Surely the default font must be defined somewhere or there be some way to find it? 

This seems to different from Windows Lazarus where the font dialogue does highlight the font details
MacBook Pro mid 2015 with OS Monterey 12.7.6
FPC 3.2.3 Lazarus 3.7
FPC 3.2.2 Lazarus 3.4

dsiders

  • Hero Member
  • *****
  • Posts: 1403
Re: Another Default Font Question for MacOS
« Reply #1 on: January 27, 2024, 12:10:04 am »
After having searched the web and read many "default font" posts here I have not found an answer so another default font question.

I have several buttons/Edits on a form. All started with "system default" ie I did not specifically choose a font when inserted on the form.  Later I changed some to see if I could improve the readability of the form. Then I wanted to change them back to the default settings.  But how?

Using the Object Inspector > font dialogue does not help unless the font has been specifically set by me because in most cases the font dialogue does not highlight the font family or font name but does highlight the size. I had hoped that if I inserted a new button and then looked via Object Inspector I would see what the default font was but it is not highlighted.

If I ShowMessage the Button1.Font.Name I get "default".  Not helpful.
If I ShowMessage the Button1.Parent.Font.Name I get "Apple System Ui Font".  Not helpful.

Surely the default font must be defined somewhere or there be some way to find it? 

This seems to different from Windows Lazarus where the font dialogue does highlight the font details

LMGTFY

https://discussions.apple.com/thread/253535537?sortBy=best
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

 

TinyPortal © 2005-2018