I try use Xft font library. Example
Code:
XftFont *font = XftFontOpen (dpy, screen,
, XftTypeString, "charter",
, XftTypeDouble, 12.0,
);
But must have Display *dpy,I found:
Code:
GtkXText *xtext = GTK_XTEXT (object);
Display *dpy = GDK_WINDOW_XDISPLAY (xtext->draw_buf);
and included
Code:
#include <X11/Xft/Xft.h>
#include <gdk/gdkx.h>
I have added search include paths:
Code:
/usr/include/freetype2
/usr/include/gtk-3.0
/usr/include/glib-2.0
and intall sudo apt-get install libxft-dev
libfreetype6-dev already installed
Now compiler ask about glibconfig.h
Everywhere, for example
http://question.ikende.com/question/...31383134323430
is
Code:
gcc `pkg-config --cflags glib-2.0` foo.c `pkg-config --libs glib-2.0`
But I am using gcc with CodeBlocks, not gcc from command line.