Implement some font stuff

Please check if it is correct..