From: sa6113 <s.p...@gm...> - 2008-09-14 06:30:36
|
Thanks for your help, it works, but it is very difficult because I want to show a FontDialog contains all fonts in system to user and change the plot text (Legend, Label and ex.) font to that. How may I accomplish that? Is there any way? 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.-tp19468970p19477669.html Sent from the matplotlib - users mailing list archive at Nabble.com. |