Project

General

Profile

Pango & glib.h

Added by Gunnar Skogsholm almost 7 years ago

There seems to be a dependency on Pango.

FontSupportPango.C ==> #include <pango/pango.h>

I downloaded the latest stable release of Pango: pango-1.40.6

However, I don't seem to have:

#include <glib.h>

Am I on the right track?


Replies (3)

RE: Pango & glib.h - Added by Roel Standaert almost 7 years ago

Pango also depends on glib but it's an optional dependency of Wt. You will only need it for advanced font support when rendering raster images or PDFs.

You're using Windows, right? We don't build our Windows builds with Pango specifically because it's a headache.

Recently (since Wt 3.3.7) we added support for raster images using Direct2D, so fonts will then be rendered using DirectWrite instead of Pango. We're still working on general font support using DirectWrite so it also works for PDF rendering on Windows.

Regards,

Roel

RE: Pango & glib.h - Added by Gunnar Skogsholm almost 7 years ago

Ok, I understand. I am using Windows for development, but I'm creating a cross platform framework.

I think the fact that Pango is a cross-platform library made me assume that it would be used for all platforms. However, the DirectWrite approach makes sense.

RE: Pango & glib.h - Added by Wim Dumon almost 7 years ago

Hey Gunnar,

It is in theory (and most likely also in practice) possible to use Pango on Windows. But indeed, pango relies on glib, which relies on I don't know what, and then you need freetype for this and that, and I haven't ever spent the time on installing that chain of dependencies. We expect DirectWrite to be a much much simpler way for bringing this functionality to our Windows users.

Wim.

    (1-3/3)