set L_PREFER_CANVAS to true