Fix #2339: render math text when using path effects