Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 352605

Summary: dev-python/matplotlib cannot find font families cmb10, cmtt10 and cmss10
Product: Gentoo Linux Reporter: Bjoern Olausson <contactme>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bjoern Olausson 2011-01-24 16:00:57 UTC
dev-python/matplotlib is expecting the font families cmb10, cmtt10 and cmss10.

Apparently these are not in the package media-fonts/texcm-ttf.

dev-python/matplotlib < 1.0 came with these fonts. Version 1.0.0 and 1.0.1 don't.



Reproducible: Always

Steps to Reproduce:
Plot something, use xlabel("somthgin") to make use of the font_manager and write a figure to a file with savefig("something", format="png")

Actual Results:  
blub@repulsion $ python plot.py 
/usr/lib64/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['cmb10'] not found. Falling back to Bitstream Vera Sans
  (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib64/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['cmtt10'] not found. Falling back to Bitstream Vera Sans
  (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib64/python2.6/site-packages/matplotlib/font_manager.py:1242: UserWarning: findfont: Font family ['cmss10'] not found. Falling back to Bitstream Vera Sans
  (prop.get_family(), self.defaultFamily[fontext]))
16:44:58 [~/work/bdvm/ana/lipid-diffusion/r2com_ana]
blub@repulsion $

Expected Results:  
No errors should pop up.

The fonts can be found here:
http://tug.ctan.org/tex-archive/fonts/cm/ps-type1/bakoma/ttf/
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2011-01-25 18:58:38 UTC

*** This bug has been marked as a duplicate of bug 334429 ***