credit tobias gunkel for the typo patch he provided on our sf tracker. ftgGetlLayout -> ftglGetLayout.