moved font-functions to dedicated file