changed message class to use Font object in the constructor