fixed opengl hints in sample; better font handling; initial layout control