From: sa6113 <s.p...@gm...> - 2008-09-15 12:13:49
|
I think I have to explain it more clear, I want to show a fontdialog to the user contain font name, style, size and some effect, and user will be able select all these changes for legend and axis labels separately, then I want to effect these items to my plot as you know user has very different options and it will be difficult to use font's path. Is that possible to set all those options are selected by user in fontdialog box to the plot?? If it is. How? I would be thankful if you help me. sa6113 wrote: > > I want to set all font system to my texts, but I can't set all the fonts. > I am using this code: > > font = FontProperties( size='small' ,fname = 'Tahoma' ) > self.ax.legend( line, label, legend , prop = font ) > > It raises this error : > font = FT2Font(str(fname)) > RuntimeError: Could not open facefile Tahoma; Cannot_Open_Resource > > Should I add a font family for that before? How? > -- View this message in context: http://www.nabble.com/set-font-problem.-tp19468970p19491749.html Sent from the matplotlib - users mailing list archive at Nabble.com. |