added font logic into functions