Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-12

IDE Font

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Anthony Walter

Can someone tell me before I create a fix, does there exist something inside Lazarus to change the font of the controls which make up the Lazarus IDE?

Purpose:

I lowered the desktop resolution in Raspbian from 1920x1080 to 1366x768. Unfortunately at that smaller size the fonts being used by Lazarus (the main menu, the tab captions, the component list, the components tree) are far too big.

I don't see a way to change these fonts. If it's not possible I will write a small IDE tool to change the fonts of these items dynamically.

Thank you for your attention.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151211/6c524136/attachment-0001.html>

Reply by email

Mattias Gaertner
to Anthony Walter
Can someone tell me before I create a fix, does there exist something inside Lazarus to change the font of the controls which make up the Lazarus IDE?

The IDE use the LCL, which uses the font of the widgetset. Some widgetsets have means to change the default font(s).

Show quoted text 9 lines
Purpose: I lowered the desktop resolution in Raspbian from 1920x1080 to 1366x768. Unfortunately at that smaller size the fonts being used by Lazarus (the main menu, the tab captions, the component list, the components tree) are far too big. I don't see a way to change these fonts. If it's not possible I will write a small IDE tool to change the fonts of these items dynamically.

Raspbian has already tools to change the font size.

Mattias

Reply by email

Anthony Walter
to Mattias Gaertner

Mattias, when I changed the Raspbian fonts (specifically the sizes) using the Raspbian tools the IDE font sizes do not reflect that change. I tried rebooting and the Lazarus fonts sizes are unchanged. I rebuilt Lazarus and the font sizes are unchanged.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151211/fa28efb1/attachment.html>

Reply by email

Anthony Walter
to Anthony Walter

Okay, after some research I found an easy way to fix the problem. I thought this might be useful to others.

You can easily define your own styles and change theme for Gtk2. Just create a files called ~/.gtkrc-2.0 and put whatever settings you prefer into it. For example to change the default font for Lazarus and it's apps you can write this in the gtk rc file:

style "MyStyle"
{
font_name = "Ubuntu Condensed 11"
}

widget_class "*" style "MyStyle"
gtk-font-name = "Ubuntu Condensed 11"

Just restart the app and the changes take effect.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20151211/fa5ccf7e/attachment.html>

Reply by email