Hi,
This problem is only present on the RaspberryPi. I am using the official
Raspbian OS without any modifications.
I am trying to change the Font on controls in a simple C program:
#include <stdlib.h>
#include <stdio.h>
#include <iup.h>
int main(int argc, char **argv)
{
Ihandle *dlg, *button, *label, *vbox;
IupOpen(&argc, &argv);
label = IupLabel("My test message in IUP.");
IupSetAttribute(label, "FONT", "Courier 30");
vbox = IupVbox(label, NULL);
dlg = IupDialog(vbox);
IupShowXY(dlg, IUP_CENTER, IUP_CENTER);
IupMainLoop();
IupClose();
return EXIT_SUCCESS;
}
Now, whatever value is put for X in IupSetAttribute(label, "FONT", X), the
font is always the default system font (PibotoLt Regular, size 12). The size of
the label changes according to the selected font size, but the text is always
the system text. Note that all the fonts I tested with are installed on the
system.
Example code above with IupSetAttribute(label, "FONT", "Courier 12"):
[cid:9f9c5a75-51fd-41dc-b280-42caf6b1f037]
... and the same code with IupSetAttribute(label, "FONT", "Courier 30"):
[cid:10c4e736-8745-4899-8f2b-55d6f267fa53]
Also note that this is a RaspberryPi specific problem, on for example Lubuntu
or Peppermint this works without problems.
Any Ideas?
Matic
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users