Typeface support

i added some code to support different typefaces..