How do you save font size or if the content is underlined?

I implemented the “putFile” route - all the content is saved and can be read on demand.
But the problem is that the font size for example does not get safed, for example if I write something with the size of 36, once I reload the file the size is back to defult (10).

I cant find any informationt hat could indicate this format inside the request received in my WOPI interface.

I cant find anything about it in the documentation, it would be great if someone could explain the process to me.

Are you opening/saving as an unformatted text file? Use eg. ODT.

Oh, my bad. I was using a .txt file.
Thanks for helping