Change font size in fluid

33 views
Skip to first unread message

ed.vi...@gmail.com

unread,
Feb 7, 2025, 7:25:04 AMFeb 7
to fltk.general
Hello

I am using FLTK1.4.1 and the fluid font is too small. My screen is 4864x2160. Is it possible to adjust the font size?

Cheers
Ed

Albrecht Schlosser

unread,
Feb 7, 2025, 7:50:25 AMFeb 7
to fltkg...@googlegroups.com
On 2/7/25 13:25 ed.vi...@gmail.com wrote:
I am using FLTK1.4.1 and the fluid font is too small. My screen is 4864x2160. Is it possible to adjust the font size?

Whether you can explicitly change the font size I don't know, but since FLTK 1.4 you can zoom the entire window with ctrl/+/-/0 as you can typically do in browsers. I hope this helps.

Ian MacArthur

unread,
Feb 7, 2025, 9:13:20 AMFeb 7
to fltk.general
On Friday, 7 February 2025 at 12:25:04 UTC ed.vi... wrote:
Hello

I am using FLTK1.4.1 and the fluid font is too small. My screen is 4864x2160. Is it possible to adjust the font size?


Generally, FLTK will try and read (from the OS) what display zoom factor to use, and adjust it's own zoom accordingly, at least on high-res displays, to try and make things come out the same size as other apps on that display...

I take it that is not working?

What OS are you running on, and what display zoom is set? What size do other applications appear?

That all said, with a recent version of fluid (e.g. 1.4.1, say) you should be able to go in to the menu: 
Edit -> Settings --> Layout and fix the font size there (I don't think that will "fix" fluid itself, but it should help for any apps you build... maybe!)
 

ed.vi...@gmail.com

unread,
Feb 13, 2025, 5:17:02 AMFeb 13
to fltk.general
Thanks. That helps a lot, but can it be automatic?

Cheers
Ed

Manolo

unread,
Feb 13, 2025, 6:00:38 AMFeb 13
to fltk.general
Le jeudi 13 février 2025 à 11:17:02 UTC+1, ed.vi...@gmail.com a écrit :
Thanks. That helps a lot, but can it be automatic?

Yes, you can define environment variable FLTK_SCALING_FACTOR to the desired
scaling factor (for example, 1.7), and any FLTK app will start and remain scaled by that factor.

ed.vi...@gmail.com

unread,
Nov 19, 2025, 3:18:17 PM (8 days ago) Nov 19
to fltk.general
Hi

Unfortunately, none of the suggestions worked to increase the text size in fluid. Neither setting FLTK_SCALING_FACTOR or ctrl/+/-/0 changed anything.

Cheers
Ed

ed.vi...@gmail.com

unread,
Nov 19, 2025, 3:22:30 PM (8 days ago) Nov 19
to fltk.general
Quick correction. They both work on my Intel  MacBook Pro as expected, but not on Ubuntu 24.04.3

Cheers
Ed

Albrecht Schlosser

unread,
Nov 19, 2025, 6:12:44 PM (8 days ago) Nov 19
to fltkg...@googlegroups.com


On 11/19/25 21:22 ed.vi...@gmail.com wrote:
Quick correction. They both work on my Intel  MacBook Pro as expected, but not on Ubuntu 24.04.3

Please check the FLTK version. The version included in Ubuntu 24.04 is FLTK 1.3.8 which doesn't have the mentioned zoom features. Thus if you are using the FLTK version installed by the Ubuntu package manager (apt) these features are not available.

But that's only a guess...

ed.vi...@gmail.com

unread,
Nov 20, 2025, 2:00:00 AM (8 days ago) Nov 20
to fltk.general
Hi

You are correct.

I always compile my own version but I was using 1.4.0 which did not work 1.4.4 does work.

Thanks

Matthias Melcher

unread,
Nov 21, 2025, 6:01:26 AM (7 days ago) Nov 21
to fltk.general
1.4.0 will certainly work. Please check your versions. The only thing that was improved for app scaling was better support for international keyboards.

I do understand the issue though, and I am in the process of rearranging Fluid dialogs and increasing text and widget sizes. When Fluid was originally written, space saving was more important than readability. 

Reply all
Reply to author
Forward
0 new messages