[Bug 885307] New: RFE: Install STIX-General fonts
bugzilla at redhat.com
bugzilla at redhat.com
Sat Dec 8 14:32:29 UTC 2012
Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=885307
Bug ID: 885307
Summary: RFE: Install STIX-General fonts
Product: Fedora
Version: rawhide
Component: stix-fonts
Severity: unspecified
Priority: unspecified
Reporter: paulo.cesar.pereira.de.andrade at gmail.com
I see that when "rpmbuild -bp" the stix-fonts package
it creates:
$ ls -R BUILD/stix-fonts-1.1.0/Fonts/
BUILD/stix-fonts-1.1.0/Fonts/:
STIX-General STIX-Word
BUILD/stix-fonts-1.1.0/Fonts/STIX-General:
STIXGeneral-BoldItalic.otf STIXNonUnicode-Bold.otf
STIXGeneral-Bold.otf STIXNonUnicode-Italic.otf
STIXGeneral-Italic.otf STIXNonUnicode-Regular.otf
STIXGeneral-Regular.otf STIXSizeFiveSym-Regular.otf
STIXIntegralsD-Bold.otf STIXSizeFourSym-Bold.otf
STIXIntegralsD-Regular.otf STIXSizeFourSym-Regular.otf
STIXIntegralsSm-Bold.otf STIXSizeOneSym-Bold.otf
STIXIntegralsSm-Regular.otf STIXSizeOneSym-Regular.otf
STIXIntegralsUp-Bold.otf STIXSizeThreeSym-Bold.otf
STIXIntegralsUpD-Bold.otf STIXSizeThreeSym-Regular.otf
STIXIntegralsUpD-Regular.otf STIXSizeTwoSym-Bold.otf
STIXIntegralsUp-Regular.otf STIXSizeTwoSym-Regular.otf
STIXIntegralsUpSm-Bold.otf STIXVariants-Bold.otf
STIXIntegralsUpSm-Regular.otf STIXVariants-Regular.otf
STIXNonUnicode-BoldItalic.otf
BUILD/stix-fonts-1.1.0/Fonts/STIX-Word:
STIX-BoldItalic.otf STIX-Italic.otf STIX-Regular.otf
STIX-Bold.otf STIXMath-Regular.otf
but %install only installs the ones under STIX-Word
This causes some python-matplotlib failures due to the missing
fonts, e.g:
$ egrep -i 'STIX(General|Integral|NonUnicode|Size|Variant)'
/usr/lib64/python2.7/site-packages/matplotlib/mathtext.py
- handles sized alternative characters for the STIXSizeX fonts.
_fontmap = { 'rm' : 'STIXGeneral',
'it' : 'STIXGeneral:italic',
'bf' : 'STIXGeneral:weight=bold',
'nonunirm' : 'STIXNonUnicode',
'nonuniit' : 'STIXNonUnicode:italic',
'nonunibf' : 'STIXNonUnicode:weight=bold',
0 : 'STIXGeneral',
1 : 'STIXSizeOneSym',
2 : 'STIXSizeTwoSym',
3 : 'STIXSizeThreeSym',
4 : 'STIXSizeFourSym',
5 : 'STIXSizeFiveSym'
and in my sagemath package, the side effect is several
warnings like this:
doctest:1214: UserWarning: findfont: Font family ['STIXGeneral'] not found.
Falling back to Bitstream Vera Sans
doctest:1214: UserWarning: findfont: Font family ['STIXSizeOneSym'] not
found. Falling back to Bitstream Vera Sans
doctest:1214: UserWarning: findfont: Font family ['STIXSizeThreeSym'] not
found. Falling back to Bitstream Vera Sans
doctest:1214: UserWarning: findfont: Font family ['STIXSizeFourSym'] not
found. Falling back to Bitstream Vera Sans
doctest:1214: UserWarning: findfont: Font family ['STIXSizeFiveSym'] not
found. Falling back to Bitstream Vera Sans
doctest:1214: UserWarning: findfont: Font family ['STIXSizeTwoSym'] not
found. Falling back to Bitstream Vera Sans
doctest:1214: UserWarning: findfont: Font family ['STIXNonUnicode'] not
found. Falling back to Bitstream Vera Sans
I do not know exactly what is done in the related debian
package, but looking at the fonts-stix_1.1.0-1.diff maybe the
call to defoma-font will rename STIXGeneral-Regular to
STIX-General, or create some fontconfig rule from
fonts-stix-1.1.0/debian/otf-stix.defoma-hints:
...
+category opentype
+begin /usr/share/fonts/opentype/stix/STIXGeneral.otf
+ Family = STIXGeneral
+ FontName = STIXGeneral
+ Encoding = Unicode
+ Location = English
+ Charset = ISO8859-1
+ GeneralFamily = Roman
+ Weight = Medium
+ Width = Variable
+ Shape = Normal Upright
+ Foundry = STI
+ Priority = 20
+end
...
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=6TjGLqbnUq&a=cc_unsubscribe
More information about the fonts-bugs
mailing list