Bug 1224715 - unbundle font files
Summary: unbundle font files
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: ruby
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeroen van Meeuwen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-25 12:25 UTC by Parag Nemade
Modified: 2018-07-24 16:37 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-24 16:37:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Parag Nemade 2015-05-25 12:25:51 UTC
Description of problem:
I am not a ruby packager but I saw that ruby-rdoc is bundling fonts.
$ rpm -ql rubygem-rdoc | grep ttf
/usr/share/gems/gems/rdoc-4.2.0/lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf
/usr/share/gems/gems/rdoc-4.2.0/lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf
/usr/share/gems/gems/rdoc-4.2.0/lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf
/usr/share/gems/gems/rdoc-4.2.0/lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf
/usr/share/gems/gems/rdoc-4.2.0/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf
/usr/share/gems/gems/rdoc-4.2.0/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf
 

I see as we have both the fonts packaged (srpms -> lato-fonts and adobe-source-code-pro-fonts) in Fedora, we should Requires: them in spec and link the font files in rdoc directory.

Checked on Fedora 22 with rubygem-rdoc-4.2.0-40.fc22.noarch

Comment 1 Parag Nemade 2015-06-16 09:39:01 UTC
Any thoughts here?

Comment 2 Parag Nemade 2015-08-18 05:09:45 UTC
Ping? can any maintainer reply here?

Comment 3 Vít Ondruch 2015-08-18 06:35:26 UTC
Thank you for the report.

Unfortunately, this is not the only place where these fonts are embedded. They have copy in every rubygem-*-doc subpackage, and this is not an easy task to solve :/

Comment 4 Vít Ondruch 2015-08-18 06:37:45 UTC
Just FTR, this [1] is discussion on related topic with upstream.

[1] https://github.com/rdoc/rdoc/issues/186

Comment 5 Jan Kurik 2016-07-26 05:10:25 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 6 Parag Nemade 2016-08-26 13:19:53 UTC
btw, Why is it that rubygem documentation carries font files and if the same font is available in Fedora, can we not unbundle that font from rubygem packages?

If anyone has thought/experimented this before, I would like to know more about that here.

Comment 7 Vít Ondruch 2016-08-26 14:20:32 UTC
I am thinking about this issue for ages.

The thing is that this is not just about fonts, but about jQuery as well, which you have probably missed (or there is another bug for that? not sure now).

May be it would make sense to extract the template from RDoc into separate package and use that template (instead of the bundled one) for generating the documentation of system gems. That way we could be sure, that there might be some breakage in documentation only when the template package changes ...

Actually, the question also is, if the fonts need to be in the generated documentation at all, since the browser should be able to find and use them if they are available on the system, not sure ...

Comment 8 Parag Nemade 2018-07-24 16:37:05 UTC
let's close this bug as there is no fix available for this. If someone still want to work on this bug then please open another fresh bug.


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