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

Bug 406301

Summary: media-fonts/libertine-ttf-5.1.3.20110615 no longer installs OTF fonts
Product: Gentoo Linux Reporter: Frank Steinmetzger <Warp_7>
Component: [OLD] LibraryAssignee: Gentoo Fonts Team <fonts>
Status: RESOLVED FIXED    
Severity: enhancement CC: cfackler, petr.pisar
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Updated ebuild for Linux Libertine fonts

Description Frank Steinmetzger 2012-02-29 14:09:48 UTC
With version 5, OTF fonts are not contained in media-fonts/linux-libertine-ttf anymore. OTF are important for DTP, LaTeX and Lilypond people. Hence I'd like to ask for either a separate package linuxlibertine-otf (since linuxlibertine-ttf already suggests such a distinction), or remove the -ttf from the name and add an otf useflag to linuxlibertine-ttf. However, the former approach would provide for smaller downloads if only one format is required.

Thanks for your consideration

Reproducible: Always
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2012-03-01 04:31:58 UTC
For the record I'm against having separate ebuilds for every font format a family comes in.
Comment 2 Cameron Fackler 2012-03-26 06:44:55 UTC
I'm somewhat new to ebuild writing, but would like to help fix this. I want to use these OTF fonts for XeTeX/Inkscape work.

What is the preferred way to fix this? It looks like the latest upstream releases split OTF and TTF into separate tarballs, with libertine-ttf-5.1.3.20110615 only installing the TTF one, despite the description mentioning OpenType. libertine-ttf-4.7.5 installed both type, which came in the same tarball.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2012-03-28 05:30:24 UTC
Try adding an otf USE flag and an entry to SRC_URI depending on it, and add "otf" to FONT_SUFFIX.  You will have to add some code to move the ttf and otf files (if they exist) into the same directory because the eclass can only handle a single FONT_S.  It really should do a recursive search, but unfortunately that breaks some stuff so we'll have to work around it for now.
Comment 4 Matthias Blümel 2013-01-01 22:04:00 UTC
Created attachment 333992 [details]
libertine-otf-5.3.0.20120702.ebuild

see bug 431430
Comment 5 MW 2014-10-17 13:51:05 UTC
Created attachment 386800 [details]
Updated ebuild for Linux Libertine fonts

Ebuild for linuxlibertine-5.3.0.20120702
(Based on ebuilds submitted by Matthias Blümel and Michelangelo Scopelliti)

- Changed ebuild name to 'linuxlibertine' instead of 'libertine-<font format>'
- Introduced format selection (OpenType or TrueType) through use flags
- Updated HOMEPAGE to http://www.linuxlibertine.org/
- Updated LICENCE to reflect the use of GPLv3
- Updated DESCRIPTION to reflect the fact that both OpenType and TrueType are available
Comment 6 Ben de Groot (RETIRED) gentoo-dev 2015-02-22 07:01:35 UTC
*libertine-5.3.0.20120702 (22 Feb 2015)

  22 Feb 2015; Ben de Groot <yngwin@gentoo.org>
  +libertine-5.3.0.20120702.ebuild:
  Move from libertine-ttf to libertine. Install OpenType fonts as well (bug
  #406301). Version bump (bug #431430).
Comment 7 zbelial 2015-02-22 10:09:48 UTC
(In reply to Ben de Groot from comment #6)
> *libertine-5.3.0.20120702 (22 Feb 2015)
> 
>   22 Feb 2015; Ben de Groot <yngwin@gentoo.org>
>   +libertine-5.3.0.20120702.ebuild:
>   Move from libertine-ttf to libertine. Install OpenType fonts as well (bug
>   #406301). Version bump (bug #431430).

But changing name affects some other packages, e.g. libreoffice and libreoffice-bin, these two packages depend on libertine-ttf. So separation maybe a better solution, or a bug must be reported to libreoffice and libreoffice-bin.
Comment 8 MW 2015-02-22 12:31:28 UTC
(In reply to Ben de Groot from comment #6)
> *libertine-5.3.0.20120702 (22 Feb 2015)
> 
>   22 Feb 2015; Ben de Groot <yngwin@gentoo.org>
>   +libertine-5.3.0.20120702.ebuild:
>   Move from libertine-ttf to libertine. Install OpenType fonts as well (bug
>   #406301). Version bump (bug #431430).

Please consider reverting so that it is again possible to select format through use flags (my ebuild still allowed you to select both if you really wanted to). Being able to opt out of the inferior TrueType format eliminates the risk of it being used unintentionally when one really wanted to use the OpenType font. The TrueType version can still be installed by those who want to use it with software that lacks OpenType support, but should otherwise be avoided.
Comment 9 Ben de Groot (RETIRED) gentoo-dev 2015-02-27 09:35:20 UTC
I want to keep it simple, so I've opted for making it selectable with USE=opentype (default enabled). But I'm open to other suggestions.
Comment 10 MW 2015-02-28 10:12:09 UTC
(In reply to Ben de Groot from comment #9)
> I want to keep it simple, so I've opted for making it selectable with
> USE=opentype (default enabled). But I'm open to other suggestions.

My view on this is still that the only reason why one would like to have the TrueType version is to accomodate legacy software. Thus, if we should make only one format selectable, it should be TrueType and not OpenType. But since Gentoo is about choice, I think the users should have the freedom to choose for themselves what format they prefer.
Comment 11 Ben de Groot (RETIRED) gentoo-dev 2015-02-28 10:45:59 UTC
(In reply to MW from comment #10)
> since Gentoo is about choice, I think the users should have the freedom to
> choose for themselves what format they prefer.

We're actually working on a more flexible solution to do just that.