from aspose.cells import Workbook # For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET # The path to the documents directory. dataDir = RunExamples.GetDataDir(".") inputPath = dataDir + "Sample.xlsx" outputPath = dataDir + "Output.out.xlsx" workbook = Workbook(inputPath) worksheet = workbook.worksheets[0] cell = worksheet.cells.get("A1") print("Before updating the font settings....") fnts = cell.get_characters() for i in range(len(fnts)): print(fnts[i].font.name) # Modify the first FontSetting Font Name fnts[0].font.name = "Arial" # And update it using SetCharacters() method cell.set_characters(fnts) print() print("After updating the font settings....") fnts = cell.get_characters() for i in range(len(fnts)): print(fnts[i].font.name) # Save workbook workbook.save(outputPath)