Hi Deepti, you can use getcssvalue() method to get the font size, font color, font type for a web element on a web page. Following lines of code explains how you can get these attributes using getcssvalue() method:
driver.findelement(By.Xpath("xpath_element").getcssvalue("font-size);
driver.findelement(By.Xpath("xpath_element").getcssvalue("font-colour);
driver.findelement(By.Xpath("xpath_element").getcssvalue("font-type);
driver.findelement(By.Xpath("xpath_element").getcssvalue("background-colour);