Creating objects for font and window