First you must learn how to send and receive data using UART. Its very easy and you can find that on tutorials.
Do you have a datasheet of printer ? First go through it and you will find series of data to initialise the printer. You will also get commands for configuring font size, go to new line etc.
You just have to use serial communication function to send those datas one by one.
All the best.