see http://yamibou.sourceforge.jp/jspbp-renderer/