Forum > General

Pango GTk Error


captian jaster:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---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
I looked up that it has something to do with the font but i dont know how to fix that.. >.> Help

Why don't you use the LCL?

I just ran your code and it worked fine. Probably you have some kind of error in your gtk2 installation.

I just download gtk2-runtime-2.16.6-2010-05-12-ash.exe from here:

And your code worked. With Lazarus


[0] Message Index

Go to full version