font: initialise fontconfig ourselves
fontconfig 2.16 warns on every start when Pango reaches it before FcInit(); calling it first keeps stderr quiet.
This commit is contained in:
2
font.c
2
font.c
@@ -1,4 +1,5 @@
|
||||
#include "dat.h"
|
||||
#include <fontconfig/fontconfig.h>
|
||||
#include <pango/pangocairo.h>
|
||||
#include "fn.h"
|
||||
|
||||
@@ -53,6 +54,7 @@ int
|
||||
textinit(void)
|
||||
{
|
||||
textclose();
|
||||
FcInit();
|
||||
fontmap = pango_cairo_font_map_new();
|
||||
if(fontmap == nil){
|
||||
fprint(2, "strans: popup: can't initialize PangoCairo\n");
|
||||
|
||||
Reference in New Issue
Block a user