Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bitstream vera fonts released .. any ebuilds yet ? ;)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Fri Feb 21, 2003 8:55 am    Post subject: Bitstream vera fonts released .. any ebuilds yet ? ;) Reply with quote

the license says "no distribution yet", but that basicly applies to gentoo as each user downloads the .tgz from him/herself ? So ebuild should be legally possible ?

http://gnome.org/fonts/
Back to top
View user's profile Send private message
green sun
Guru
Guru


Joined: 04 Nov 2002
Posts: 325
Location: Wista, MA

PostPosted: Fri Feb 21, 2003 11:24 am    Post subject: Reply with quote

Feel like posting some screen shots of the fonts in action? Why is this exciting? Are they great fonts or something?
Back to top
View user's profile Send private message
foser
Retired Dev
Retired Dev


Joined: 28 Oct 2002
Posts: 154

PostPosted: Fri Feb 21, 2003 12:55 pm    Post subject: Reply with quote

no distribution yet, mainly because they're not yet done.
_________________
Gentoo Gnome Desktop team
Back to top
View user's profile Send private message
Koon
Retired Dev
Retired Dev


Joined: 10 Dec 2002
Posts: 518

PostPosted: Fri Feb 21, 2003 2:11 pm    Post subject: Reply with quote

green sun wrote:
Feel like posting some screen shots of the fonts in action? Why is this exciting? Are they great fonts or something?

There you can see the monospaced Vera in action : https://forums.gentoo.org/viewtopic.php?p=213033#213033
-K
Back to top
View user's profile Send private message
TGL
Bodhisattva
Bodhisattva


Joined: 02 Jun 2002
Posts: 1978
Location: Rennes, France

PostPosted: Fri Feb 21, 2003 2:58 pm    Post subject: Reply with quote

I've written an ebuild. Comments are welcome before it goes to bugzilla.
x11-misc/bitstream-vera/bitstream-vera-1.0.ebuild:
Code:
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
 
DESCRIPTION="Bitstream Vera TTF fonts"
SRC_URI="http://ftp.gnome.org/pub/GNOME/sources/${PN}/${PV}/${P}.tar.gz"
HOMEPAGE="http://gnome.org/fonts/"
# The license seems restrictive, are we allowed to package this?
# We need at least to create a "Bitstream" license file from included COPYRIGHT.TXT
# LICENSE="Bitstream"
SLOT="0"
# Only tested on my x86, but I'm pretty sure it works anywhere:
KEYWORDS="x86 sparc ppc alpha"
DEPEND="virtual/x11"
 
src_install() {
        insinto /usr/share/doc/${PF}
        doins local.conf
        dohtml Bitstream_Vera_Fonts_README.html
        dodoc COPYRIGHT.TXT
 
        insinto /usr/X11R6/lib/X11/fonts/vera
        insopts -m0644
        doins *.ttf
 
        cd ${D}/usr/X11R6/lib/X11/fonts/vera
        mkfontscale
        # Maybe "ttmkfdir" from x11-misc/ttmkfdir would be better?
        # I don't really know the difference...
}
 
pkg_postinst() {
        einfo "- To use this fonts with fontconfig-2.x apps, copy"
        einfo "  /usr/share/doc/${PF}/local.conf into /etc/fonts/,"
        einfo "  and run fc-cache."
        einfo "- To use it with other XFree apps, add this to your XF86Config:"
        einfo "  FontPath \"/usr/X11R6/lib/X11/fonts/vera/\""
}
 
pkg_postrm() {
        einfo "Don't forget to clean up your fonts config in"
        einfo "/etc/fonts/ and /etc/X11/XF86Config"
}


The fontconfig configuration is to be done by hand, because people may already have a "/etc/fonts/local.conf" file of their own. Maybe a cleanest solution would be to make some additions to the standard "/etc/fonts/fonts.conf" file from fontconfig package.

And something else: does anybody know the difference between "mkfontscale" and "ttmkfdir" for TTF fonts? They don't produce the same "fonts.scale" file, but I don't know which one is the best.
Back to top
View user's profile Send private message
jyasskin
n00b
n00b


Joined: 09 Jan 2003
Posts: 3

PostPosted: Fri Feb 21, 2003 4:15 pm    Post subject: Reply with quote

Two things:

I think the license prohibits the gentoo mirrors from caching the fonts, so someone needs to figure out how to prevent that.

Second, why are fonts scattered between x11-misc and app-text? Wouldn't it make more sense to put them all in, say, x11-fonts (or app-fonts)?

--edit--
Also, this is just a beta; it shouldn't be version 1.0 (even though that's the file name).
Back to top
View user's profile Send private message
TGL
Bodhisattva
Bodhisattva


Joined: 02 Jun 2002
Posts: 1978
Location: Rennes, France

PostPosted: Fri Feb 21, 2003 4:40 pm    Post subject: Reply with quote

jyasskin wrote:
I think the license prohibits the gentoo mirrors from caching the fonts, so someone needs to figure out how to prevent that.

Yes, probably. I think that if we remove the SRC_URI, check if the archive is in distfiles, and display a "Please, download blablabla..." if it's not there, then it will be okay. I'll make this changes asap.

jyasskin wrote:
Second, why are fonts scattered between x11-misc and app-text? Wouldn't it make more sense to put them all in, say, x11-fonts (or app-fonts)?

You're also right on this point... And it would really be easiest for the user to know what are the available fonts he can install. But I don't know how easy are this kind of moves for portage tree mainteners. I will open a bug to ask about that.

Thanks for your comments.
Back to top
View user's profile Send private message
TGL
Bodhisattva
Bodhisattva


Joined: 02 Jun 2002
Posts: 1978
Location: Rennes, France

PostPosted: Fri Feb 21, 2003 5:25 pm    Post subject: Reply with quote

Here is a new one that should prevent fonts archive mirroring, and thus require manual download.
Code:
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2

DESCRIPTION="Bitstream Vera TTF fonts"
#SRC_URI="http://ftp.gnome.org/pub/GNOME/sources/${PN}/${PV}/${P}.tar.gz"
HOMEPAGE="http://gnome.org/fonts/"
# We have to create a "Bitstream" license file from included COPYRIGHT.TXT
# LICENSE="Bitstream"
SLOT="0"
# Only tested on my x86, but I'm pretty sure this works anywhere:
KEYWORDS="x86 sparc ppc alpha"
DEPEND="virtual/x11"

pkg_setup() {
   if [ ! -f ${DISTDIR}/${P}.tar.gz ] ; then
      eerror "Due to license restrictions, this fonts can't be redistributed."
      eerror "Please download the archive from http://gnome.org/fonts/"
      eerror "and place it in ${DISTDIR}/"
      eerror "The file should be named ${P}.tar.gz"
      die "Fonts archive not found."
   fi
}

src_unpack() {
   unpack ${P}.tar.gz
}
   
src_install() {
   insinto /usr/share/doc/${PF}
   doins local.conf
   dohtml Bitstream_Vera_Fonts_README.html
   dodoc COPYRIGHT.TXT
   
   insinto /usr/X11R6/lib/X11/fonts/vera
   insopts -m0644
   doins *.ttf
   
   cd ${D}/usr/X11R6/lib/X11/fonts/vera
   mkfontscale
   # Maybe "ttmkfdir" from x11-misc/ttmkfdir would be better?
   # I don't really know the difference...
}

pkg_postinst() {
   einfo "- To use this fonts with fontconfig-2.x apps, copy"
   einfo "  /usr/share/doc/${PF}/local.conf into /etc/fonts/"
   einfo "- To use it with other XFree apps, add this to your XF86Config:"
   einfo "  FontPath \"/usr/X11R6/lib/X11/fonts/vera/\""
}

pkg_postrm() {
   einfo "Don't forget to clean up your fonts config in"
   einfo "/etc/fonts/ and /etc/X11/XF86Config"
}


I've also proposed the creation of a "*-fonts" category on bugzilla:
https://bugs.gentoo.org/show_bug.cgi?id=16151
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum