program Base;
{$mode objfpc}{$H+}
uses
GTK2,SysUtils;
Var
Btn,Window:pGTKWidget;
begin
GTK_Init(@argc,@argv);
Btn := gtk_button_new_with_label('Button');
Window := gtk_window_new(GTK_WINDOW_TOPLEVEL);
GTK_Container_Add(GTK_Container(Window),Btn);
GTK_Widget_Show(Window);
GTK_Widget_Show(Btn);
GTK_Main;
end.
Simple code to add a button.. right?
but i get this error:
File shape.c line 75 pango shape assertion failed
(glyphs->num_glyphs>0)
I looked up that it has something to do with the font but i dont know how to fix that.. >.> Help