Posts: 1
Joined: Wed Aug 30, 2017 6:12 pm

gtk+css problem

Wed Aug 30, 2017 6:16 pm

Hi all,

I have a problem with gtk+ version 3.22.11 on a raspberry pi running raspbian.
Not sure if this is the right place so please tell me if I have to ask somewhere else.

I build a small test GUI with glade (see and a python demo ( using a css (test.css) to change the fontsize of a label.

This works fine on my PC running Ubuntu and Gtk version version 3.18.9 (see PC.png) but the font size change is ignored on my RPI (see RPI.png)

The question is: is this a GTK issue or a raspbian issue ?

Thanks for your help,

(988 Bytes) Downloaded 48 times
PC.jpg (221.71 KiB) Viewed 1225 times
RPI.png (211.74 KiB) Viewed 1225 times

Posts: 1
Joined: Sun Nov 05, 2017 4:51 pm

Re: gtk+css problem

Sun Nov 05, 2017 4:53 pm

Hi, i have the same problem. Did you solve it ?

Posts: 1
Joined: Mon Feb 12, 2018 11:33 pm

Re: gtk+css problem

Mon Feb 12, 2018 11:37 pm

Similar issue here. When attempting to apply a style from the following CSS, the font color is changed, but nothing I can do will affect the font size.

Code: Select all

label {
  color: #FF0000;
  font-size: 10px;

Return to “Graphics programming”

Who is online

Users browsing this forum: No registered users and 1 guest