Font installation stuff

Michael Droettboom wrote:

My suspicion from looking at the code was that a great deal of time

was spent statting all the font files at start up. FontManager.__init__
goes through all the files in the cache to determine if they still exist
and refreshes the cache if it finds one missing. Your patch (if I
understand pickling correctly) is bypassing all those checks, which I
think is generally a good thing.

However, now findfont has the potential to return a path to a file

that no longer exists. findfont should probably be wrapped in a function
that will check the result, and if the path doesn't exist, rebuild the
cache and then perform the query again.

Done and committed.

Eric

···

Cheers,
Mike

Done and committed.

It seems a recent commit has severely broken my font loading. When I start MPL now, I get an infinite stream of messages similar to:

Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was !"%#&#2*3*9*:*<=@ADE*@";;"C#C)*=>A&B879(')**7'6'7#5#3#327#"'#5##53&'#7/75&'7535#35#35#'3'#' )
Found an unknown keyword in AFM header (was ?)52

                                                     Je)
!_)nd an unknown keyword in AFM header (wasSSJJJJ.,?+%"5??0
Found an unknown keyword in AFM header (was
                                             g

Perhaps this is related to the recent commit?

-r

···

----
Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
http://pong.tamu.edu/~rob
phone: 979-458-0096, fax: 979-845-6331

Hmm... I'm not readily able to reproduce this here.

What are you setting in matplotlibrc (or in your plot?)

Also, if you delete the font cache (which is now ~/.matplotlib/fontManager.cache), does that help? (Might be a useful data point -- not suggesting it as a solution.)

Cheers,
Mike

Rob Hetland wrote:

···

Done and committed.

It seems a recent commit has severely broken my font loading. When I start MPL now, I get an infinite stream of messages similar to:

Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was !"% #&#2*3*9*:*<=@ADE*@";;"C#C)*=>A&B879(') **7'6'7#5#3#327#"'#5##53&'#7/75&'7535#35#35#'3'#' )
Found an unknown keyword in AFM header (was ?)52

                                                     Je)
!_)nd an unknown keyword in AFM header (wasSSJJJJ.,?+%"5??0
Found an unknown keyword in AFM header (was
                                             g

Perhaps this is related to the recent commit?

-r

----
Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
http://pong.tamu.edu/~rob
phone: 979-458-0096, fax: 979-845-6331

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

What are you setting in matplotlibrc (or in your plot?)

Also, if you delete the font cache (which is now
~/.matplotlib/fontManager.cache), does that help? (Might be a useful
data point -- not suggesting it as a solution.)

Well, I've been trying out the Arev fonts, as you know, so I changed those back to Bitstream Vera Sans. I deleted the cache. I took out the mathtext stuff. All that is left is pretty vanilla rc.

Perhaps it's a Mac thing?

Also, revision 3700 works, so that can at least frame the initiation of the bug. I can whittle this down to the exact revision (there are only nine since 3700), if that is needed,

-r

···

----
Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
http://pong.tamu.edu/~rob
phone: 979-458-0096, fax: 979-845-6331

Mike, Rob,

One of the changes I made was to cause the afmdict to be generated automatically at the start rather than on demand. The problem you are having seems related to afm fonts, so I suspect this is it.

What is your rcParams['pdf.use14corefonts'] setting? Please try reversing it, and see if that changes the result. This is looking for a clue, not a solution.

(I knew I should have left the font stuff alone...)

Thanks.

Eric

Michael Droettboom wrote:

···

Hmm... I'm not readily able to reproduce this here.

What are you setting in matplotlibrc (or in your plot?)

Also, if you delete the font cache (which is now ~/.matplotlib/fontManager.cache), does that help? (Might be a useful data point -- not suggesting it as a solution.)

Cheers,
Mike

Rob Hetland wrote:

Done and committed.

It seems a recent commit has severely broken my font loading. When I start MPL now, I get an infinite stream of messages similar to:

Found an unknown keyword in AFM header (was )
Found an unknown keyword in AFM header (was !"% #&#2*3*9*:*<=@ADE*@";;"C#C)*=>A&B879(') **7'6'7#5#3#327#"'#5##53&'#7/75&'7535#35#35#'3'#' )
Found an unknown keyword in AFM header (was ?)52

                                                     Je)
!_)nd an unknown keyword in AFM header (wasSSJJJJ.,?+%"5??0
Found an unknown keyword in AFM header (was
                                             g

Perhaps this is related to the recent commit?

-r

----
Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
http://pong.tamu.edu/~rob
phone: 979-458-0096, fax: 979-845-6331

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

Indeed, reversing this value fixes the problem.

My value had been set to False.
  pdf.use14corefonts : True
in the mplrc file works with the latest revision.

-r

···

On Aug 14, 2007, at 1:55 PM, Eric Firing wrote:

rcParams['pdf.use14corefonts']

----
Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
http://pong.tamu.edu/~rob
phone: 979-458-0096, fax: 979-845-6331

Rob, Mike,

What this implies to me is that either there is a problem with the code that is generating afmdict (and I did not change that code, I just caused it to be invoked when the fontManager instance is created.), or there is a problem with some .afm files on Rob's machine.

I really don't know how to troubleshoot it beyond this.

(As a separate issue, I probably I should change font_manager.py so that if the rcParams value below was changed since the cache was made, it will be rebuilt with the new value.)

Eric

Rob Hetland wrote:

···

On Aug 14, 2007, at 1:55 PM, Eric Firing wrote:

rcParams['pdf.use14corefonts']

Indeed, reversing this value fixes the problem.

My value had been set to False.
  pdf.use14corefonts : True
in the mplrc file works with the latest revision.

-r

----
Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
http://pong.tamu.edu/~rob
phone: 979-458-0096, fax: 979-845-6331

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options

Hi All-

FYI, I am seeing the same problem on intel OSX 10.4.10

Andrew

Eric Firing wrote:

···

Rob, Mike,

What this implies to me is that either there is a problem with the code that is generating afmdict (and I did not change that code, I just caused it to be invoked when the fontManager instance is created.), or there is a problem with some .afm files on Rob's machine.

I really don't know how to troubleshoot it beyond this.

(As a separate issue, I probably I should change font_manager.py so that if the rcParams value below was changed since the cache was made, it will be rebuilt with the new value.)

Eric

Rob Hetland wrote:

On Aug 14, 2007, at 1:55 PM, Eric Firing wrote:

rcParams['pdf.use14corefonts']

Indeed, reversing this value fixes the problem.

My value had been set to False.
  pdf.use14corefonts : True
in the mplrc file works with the latest revision.

-r

----
Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
http://pong.tamu.edu/~rob
phone: 979-458-0096, fax: 979-845-6331

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@...517...
matplotlib-devel List Signup and Options

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/