Apply xft patch, slightly modified