Changing the font

Hi there,
I'm trying to change the font default on my graph to New Century Schoolbook.
I'm trying to do this by editing the matplotlibrc file. Unfortunately,
although I'm able to change the font.family, I can't figure out how to make
it use something other than the default in the family... I tried changing
the list further down to only include the font I want, like this:

font.serif : New Century Schoolbook #Bitstream Vera Serif, New
Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman,
Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif

(note I commented out the other fonts, just rearranging the list to put New
Century Schoolbook first didn't seem to work either)

Could anyone tell me what I'm doing wrong?
Thanks a lot!
Alex

···

--
View this message in context: http://old.nabble.com/Changing-the-font-tp28111472p28111472.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hi, sorry I wasn't too clear... I changed that, but I don't seem to be able
to choose between the different serif fonts, it just always gives me the
default...

Alex S wrote:

···

Hi there,
I'm trying to change the font default on my graph to New Century
Schoolbook. I'm trying to do this by editing the matplotlibrc file.
Unfortunately, although I'm able to change the font.family, I can't figure
out how to make it use something other than the default in the family...
I tried changing the list further down to only include the font I want,
like this:

font.serif : New Century Schoolbook #Bitstream Vera Serif, New
Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman,
Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif

(note I commented out the other fonts, just rearranging the list to put
New Century Schoolbook first didn't seem to work either)

Could anyone tell me what I'm doing wrong?
Thanks a lot!
Alex

--
View this message in context: http://old.nabble.com/Changing-the-font-tp28111472p28112278.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Can you set "verbose.level" to "debug-annoying" in your matplotlibrc file, and then send the output to this list. That may help us track down where the font lookup is failing. Also, what platform and version of matplotlib are you running?

Mike

Alex S wrote:

···

Hi, sorry I wasn't too clear... I changed that, but I don't seem to be able
to choose between the different serif fonts, it just always gives me the
default...

Alex S wrote:
  

Hi there,
I'm trying to change the font default on my graph to New Century
Schoolbook. I'm trying to do this by editing the matplotlibrc file. Unfortunately, although I'm able to change the font.family, I can't figure
out how to make it use something other than the default in the family... I tried changing the list further down to only include the font I want,
like this:

font.serif : New Century Schoolbook #Bitstream Vera Serif, New
Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman,
Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif

(note I commented out the other fonts, just rearranging the list to put
New Century Schoolbook first didn't seem to work either)

Could anyone tell me what I'm doing wrong?
Thanks a lot!
Alex

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

I think I'm using MPL .99.1 (is there a command to check?) on Windows XP.
Thanks for the debug tip, I don't think posting the whole thing is necessary
because this line seems to be the problem:

findfont: Could not match
:family=serif:style=normal:variant=normal:weight=normal:stretch=normal:size=12.0.
Returning
C:\Python26\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf

So I guess the font's missing from the folder. Can I add it somehow?

Michael Droettboom-3 wrote:

···

Can you set "verbose.level" to "debug-annoying" in your matplotlibrc
file, and then send the output to this list. That may help us track
down where the font lookup is failing. Also, what platform and version
of matplotlib are you running?

Mike

Alex S wrote:

Hi, sorry I wasn't too clear... I changed that, but I don't seem to be
able
to choose between the different serif fonts, it just always gives me the
default...

Alex S wrote:
  

Hi there,
I'm trying to change the font default on my graph to New Century
Schoolbook. I'm trying to do this by editing the matplotlibrc file.
Unfortunately, although I'm able to change the font.family, I can't
figure
out how to make it use something other than the default in the family...
I tried changing the list further down to only include the font I want,
like this:

font.serif : New Century Schoolbook #Bitstream Vera Serif, New
Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman,
Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif

(note I commented out the other fonts, just rearranging the list to put
New Century Schoolbook first didn't seem to work either)

Could anyone tell me what I'm doing wrong?
Thanks a lot!
Alex

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
View this message in context: http://old.nabble.com/Changing-the-font-tp28111472p28141094.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

It would still be helpful to see the whole listing (send it to me offlist) because that will indicate where fonts are being looked for, and hopefully *why* this is failing.

It should search for fonts in the standard Windows location (usually C:\Windows\Fonts). Have you tried setting font.family to "New Century Schoolbook" directly? (I wonder if the secondary lookup is failing).

Cheers,
Mike

Alex S wrote:

···

I think I'm using MPL .99.1 (is there a command to check?) on Windows XP. Thanks for the debug tip, I don't think posting the whole thing is necessary
because this line seems to be the problem:

findfont: Could not match
:family=serif:style=normal:variant=normal:weight=normal:stretch=normal:size=12.0.
Returning
C:\Python26\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf

So I guess the font's missing from the folder. Can I add it somehow?

Michael Droettboom-3 wrote:
  

Can you set "verbose.level" to "debug-annoying" in your matplotlibrc file, and then send the output to this list. That may help us track down where the font lookup is failing. Also, what platform and version of matplotlib are you running?

Mike

Alex S wrote:
    

Hi, sorry I wasn't too clear... I changed that, but I don't seem to be
able
to choose between the different serif fonts, it just always gives me the
default...

Alex S wrote:
  

Hi there,
I'm trying to change the font default on my graph to New Century
Schoolbook. I'm trying to do this by editing the matplotlibrc file. Unfortunately, although I'm able to change the font.family, I can't
figure
out how to make it use something other than the default in the family... I tried changing the list further down to only include the font I want,
like this:

font.serif : New Century Schoolbook #Bitstream Vera Serif, New
Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman,
Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif

(note I commented out the other fonts, just rearranging the list to put
New Century Schoolbook first didn't seem to work either)

Could anyone tell me what I'm doing wrong?
Thanks a lot!
Alex

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Ah ok, I've sent it on to you. I've just tried setting font.family to "New
Century Schoolbook" directly but it generates something similar. I'm
starting to think part of the problem is that I've set the home directory to
U: somehow, U: being a shared drive which doesn't have a font directory...
I don't know how I set this, it's not mentioned in the rc file anywhere that
I can see...

Michael Droettboom-3 wrote:

···

It would still be helpful to see the whole listing (send it to me
offlist) because that will indicate where fonts are being looked for,
and hopefully *why* this is failing.

It should search for fonts in the standard Windows location (usually
C:\Windows\Fonts). Have you tried setting font.family to "New Century
Schoolbook" directly? (I wonder if the secondary lookup is failing).

Cheers,
Mike

Alex S wrote:

I think I'm using MPL .99.1 (is there a command to check?) on Windows XP.
Thanks for the debug tip, I don't think posting the whole thing is
necessary
because this line seems to be the problem:

findfont: Could not match
:family=serif:style=normal:variant=normal:weight=normal:stretch=normal:size=12.0.
Returning
C:\Python26\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf

So I guess the font's missing from the folder. Can I add it somehow?

Michael Droettboom-3 wrote:
  

Can you set "verbose.level" to "debug-annoying" in your matplotlibrc
file, and then send the output to this list. That may help us track
down where the font lookup is failing. Also, what platform and version
of matplotlib are you running?

Mike

Alex S wrote:
    

Hi, sorry I wasn't too clear... I changed that, but I don't seem to be
able
to choose between the different serif fonts, it just always gives me
the
default...

Alex S wrote:
  

Hi there,
I'm trying to change the font default on my graph to New Century
Schoolbook. I'm trying to do this by editing the matplotlibrc file.
Unfortunately, although I'm able to change the font.family, I can't
figure
out how to make it use something other than the default in the
family...
I tried changing the list further down to only include the font I
want,
like this:

font.serif : New Century Schoolbook #Bitstream Vera Serif,
New
Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman,
Bookman,
Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif

(note I commented out the other fonts, just rearranging the list to
put
New Century Schoolbook first didn't seem to work either)

Could anyone tell me what I'm doing wrong?
Thanks a lot!
Alex

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
View this message in context: http://old.nabble.com/Changing-the-font-tp28111472p28141683.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

For the benefit of future users Googling this problem -->

After an off-list discussion, we realized there were a couple of fonts on Alex' system with the names "Century Schoolbook" and "New Century Schoolbook LT Std". Using one of those names instead resolved the problem.

Mike

Alex S wrote:

···

Ah ok, I've sent it on to you. I've just tried setting font.family to "New
Century Schoolbook" directly but it generates something similar. I'm
starting to think part of the problem is that I've set the home directory to
U: somehow, U: being a shared drive which doesn't have a font directory... I don't know how I set this, it's not mentioned in the rc file anywhere that
I can see...

Michael Droettboom-3 wrote:
  

It would still be helpful to see the whole listing (send it to me offlist) because that will indicate where fonts are being looked for, and hopefully *why* this is failing.

It should search for fonts in the standard Windows location (usually C:\Windows\Fonts). Have you tried setting font.family to "New Century Schoolbook" directly? (I wonder if the secondary lookup is failing).

Cheers,
Mike

Alex S wrote:
    

I think I'm using MPL .99.1 (is there a command to check?) on Windows XP. Thanks for the debug tip, I don't think posting the whole thing is
necessary
because this line seems to be the problem:

findfont: Could not match
:family=serif:style=normal:variant=normal:weight=normal:stretch=normal:size=12.0.
Returning
C:\Python26\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf

So I guess the font's missing from the folder. Can I add it somehow?

Michael Droettboom-3 wrote:
  

Can you set "verbose.level" to "debug-annoying" in your matplotlibrc file, and then send the output to this list. That may help us track down where the font lookup is failing. Also, what platform and version of matplotlib are you running?

Mike

Alex S wrote:
    

Hi, sorry I wasn't too clear... I changed that, but I don't seem to be
able
to choose between the different serif fonts, it just always gives me
the
default...

Alex S wrote:
  

Hi there,
I'm trying to change the font default on my graph to New Century
Schoolbook. I'm trying to do this by editing the matplotlibrc file. Unfortunately, although I'm able to change the font.family, I can't
figure
out how to make it use something other than the default in the
family... I tried changing the list further down to only include the font I
want,
like this:

font.serif : New Century Schoolbook #Bitstream Vera Serif,
New
Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman,
Bookman,
Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif

(note I commented out the other fonts, just rearranging the list to
put
New Century Schoolbook first didn't seem to work either)

Could anyone tell me what I'm doing wrong?
Thanks a lot!
Alex

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Yup, thanks for the help everyone

Michael Droettboom-3 wrote:

···

For the benefit of future users Googling this problem -->

After an off-list discussion, we realized there were a couple of fonts
on Alex' system with the names "Century Schoolbook" and "New Century
Schoolbook LT Std". Using one of those names instead resolved the
problem.

Mike

Alex S wrote:

Ah ok, I've sent it on to you. I've just tried setting font.family to
"New
Century Schoolbook" directly but it generates something similar. I'm
starting to think part of the problem is that I've set the home directory
to
U: somehow, U: being a shared drive which doesn't have a font
directory...
I don't know how I set this, it's not mentioned in the rc file anywhere
that
I can see...

Michael Droettboom-3 wrote:
  

It would still be helpful to see the whole listing (send it to me
offlist) because that will indicate where fonts are being looked for,
and hopefully *why* this is failing.

It should search for fonts in the standard Windows location (usually
C:\Windows\Fonts). Have you tried setting font.family to "New Century
Schoolbook" directly? (I wonder if the secondary lookup is failing).

Cheers,
Mike

Alex S wrote:
    

I think I'm using MPL .99.1 (is there a command to check?) on Windows
XP.
Thanks for the debug tip, I don't think posting the whole thing is
necessary
because this line seems to be the problem:

findfont: Could not match
:family=serif:style=normal:variant=normal:weight=normal:stretch=normal:size=12.0.
Returning
C:\Python26\lib\site-packages\matplotlib\mpl-data\fonts\ttf\Vera.ttf

So I guess the font's missing from the folder. Can I add it somehow?

Michael Droettboom-3 wrote:
  

Can you set "verbose.level" to "debug-annoying" in your matplotlibrc
file, and then send the output to this list. That may help us track
down where the font lookup is failing. Also, what platform and
version
of matplotlib are you running?

Mike

Alex S wrote:
    

Hi, sorry I wasn't too clear... I changed that, but I don't seem to
be
able
to choose between the different serif fonts, it just always gives me
the
default...

Alex S wrote:
  

Hi there,
I'm trying to change the font default on my graph to New Century
Schoolbook. I'm trying to do this by editing the matplotlibrc file.
Unfortunately, although I'm able to change the font.family, I can't
figure
out how to make it use something other than the default in the
family...
I tried changing the list further down to only include the font I
want,
like this:

font.serif : New Century Schoolbook #Bitstream Vera Serif,
New
Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman,
Bookman,
Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif

(note I commented out the other fonts, just rearranging the list to
put
New Century Schoolbook first didn't seem to work either)

Could anyone tell me what I'm doing wrong?
Thanks a lot!
Alex

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
View this message in context: http://old.nabble.com/Changing-the-font-tp28111472p28142759.html
Sent from the matplotlib - users mailing list archive at Nabble.com.