Bug 885312 - RFE: Add extra jsmath fonts
Summary: RFE: Add extra jsmath fonts
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: jsmath-fonts
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-08 14:39 UTC by Paulo Andrade
Modified: 2013-01-16 16:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-16 15:23:22 UTC


Attachments (Terms of Use)

Description Paulo Andrade 2012-12-08 14:39:03 UTC
Same issue as in missing stix reported in #885307 but in
this case the fonts are not in the source rpm.

Link to download directory is
http://www.math.union.edu/~dpvc/jsmath/download/extra-fonts/

And reason is some missing fonts, that are required by
python-matplotlib:

$ egrep -i "'cm" /usr/lib64/python2.7/site-packages/matplotlib/mathtext.py
        if cached_font.font.postscript_name == 'Cmex10':
    _fontmap = { 'cal' : 'cmsy10',
                 'rm'  : 'cmr10',
                 'tt'  : 'cmtt10',
                 'it'  : 'cmmi10',
                 'bf'  : 'cmb10',
                 'sf'  : 'cmss10',
                 'ex'  : 'cmex10'
        prop = FontProperties('cmex10')
        'cm'       : BakomaFonts,
                    "mathtext.fontset must be either 'cm', 'stix', "

and cause some failures, for example in my sagemath package:

    doctest:1214: UserWarning: findfont: Font family ['cmb10'] not found. Falling back to Bitstream Vera Sans
    doctest:1214: UserWarning: findfont: Font family ['cmtt10'] not found. Falling back to Bitstream Vera Sans
    doctest:1214: UserWarning: findfont: Font family ['cmss10'] not found. Falling back to Bitstream Vera Sans

I believe these fonts could be added in a jsmath-fonts-extras
but I believe python-maptlotlib could also be patched to not
require those (and the extra stix-fonts").

Comment 1 Paulo Andrade 2013-01-16 15:23:22 UTC
I think I found an workaround that will cause it to not require
fonts not in the common js-math linux fonts tarball.
Since the stix-fonts bug report was closed as NOTABUG, this one
should also be so, as it is a smaller problem, and the workaround
should no longer trigger the warning messages.

Comment 2 Rex Dieter 2013-01-16 15:55:08 UTC
Sorry for not replying yet, been a bit busy. :-/

Fwiw, I'm open to adding those (to an -extras subpkg perhaps) if there is still any remote need for these.

Comment 3 Fedora Update System 2013-01-16 16:46:14 UTC
python-matplotlib-1.2.0-7.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/python-matplotlib-1.2.0-7.fc18

Comment 4 Paulo Andrade 2013-01-16 16:52:10 UTC
(In reply to comment #2)
> Sorry for not replying yet, been a bit busy. :-/
> 
> Fwiw, I'm open to adding those (to an -extras subpkg perhaps) if there is
> still any remote need for these.

They should no longer be required. Well, they "could" be used if
available, but now it no longer generates any warning. I am also
hoping to find some time to split more the python-matplotlib
package, and add missing packages required to make extra backends
functional, as well as test the ones that have all requires already
in fedora and add they to requires and build requires as applicable.


Note You need to log in before you can comment on or make changes to this bug.