Created attachment 649271 [details] [diff] [review] Allow build gecko without pango-cairo I'm building gecko on environment without X11, and pango with X does bring a lot of unrelated dependencies. and when I compile pango without X it disable also pango-cairo feature In order to build gecko with such pango version I need to disable pango_cairo_font_map_get_default call and add related define in config.h Not sure what side effect I would get with disabled gPangoFontMap = pango_cairo_font_map_get_default.. But most of fonts functionality seems to work fine.
When I configure Pango --without-x, I get configuration: backends: Cairo FreeType If you want to be able to build Pango and Gecko without cairo, then it is reasonable to have a configure check. If you just want to avoid X11, then it should be possible to build Pango with cairo, if cairo is installed.
Comment on attachment 649271 [details] [diff] [review] Allow build gecko without pango-cairo Ok, I double checked and recompiled pango... and got everything working after all. so no need for the patch, pango non-X11 has pango cairo stub which just works great., only thing is that cairo must be recompiled witout X11 too.