I am using script from coed snipet how to print a page, but i dont know way how to say to printer which font and which size of font set, which colour of background and foreground.Please help

Which code snippet are you talking about?

I have a hunch that driving a printer depends a lot on the operating system and the installed drivers.

wxPython has Printer Framework that allows you to do print whatever you put on a canvas. This can be colored text of any font. However, you got to get familiar with wxPython GUI. Look at wx.Printout(), wx.PrintData() and wx.PrintPreview()