Here is how to select the font in cairo in python. import cairocffi as cairo # define context somewhere.. ft="Times New Roman" context.select_font_face(ft, cairo.FONT_SLANT_NORMAL, cairo.FONT_WEIGHT_NORMAL) Categories: python Tags: cairofont 0 Comments Leave a Reply Cancel reply Your email address will not be published. Name Email Website What's on your mind?
0 Comments