Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Making fonts acceptable

  1. #11
    Guest

    Re:Making fonts acceptable

    [quote author=PK link=board=6;threadid=6431;start=0#61391 date=1046917317]
    Correct me if I'm wrong here, but I don't think there is a "smooth" USE flag. It's not mentioned on http://www.gentoo.org/dyn/use-index.xml and I have purdy fonts without it, just "truetype".

    As for the corrupt downloads, I have had the same problem, but usually using a different mirror does the trick quite nicely.
    [/quote]

    Read the ebuild my son.... You are canadian, but I won't hold it against ya.

  2. #12
    Advisor
    Join Date
    Apr 2002
    Posts
    858

    Re:Making fonts acceptable

    [quote author=Lovechild link=board=6;threadid=6431;start=0#61407 date=1046932871]
    [quote author=PK link=board=6;threadid=6431;start=0#61391 date=1046917317]
    Correct me if I'm wrong here, but I don't think there is a "smooth" USE flag. It's not mentioned on http://www.gentoo.org/dyn/use-index.xml and I have purdy fonts without it, just "truetype".

    As for the corrupt downloads, I have had the same problem, but usually using a different mirror does the trick quite nicely.
    [/quote]

    Read the ebuild my son.... You are canadian, but I won't hold it against ya.
    [/quote]

    Well, i did say correct me if i'm wrong , but which ebuild am I supposed to be reading?

  3. #13
    Guest

    Re:Making fonts acceptable

    the xfree one.

    Basically the truetype USE flag will make portage download and configure the Microsoft fonts.. I'm guessing that when the Bitstream Vera fonts hits 1.0 the ebuild will be updated to download those also.

  4. #14
    Advisor
    Join Date
    Apr 2002
    Posts
    858

    Re:Making fonts acceptable

    I'm probably too late with this, but here are some pretty good instructions on how to make them purdy, personally the "smooth" flag made them uglier (or maybe it was some other freaky thing when upgrading to X 4.3.0) and this solved the problem beautifully:
    http://forums.gentoo.org/viewtopic.p...5d92b1cce30f2a

  5. #15
    Guest

    Re:Making fonts acceptable

    smooth + bytecode hinter == bad !

    smooth + free hinter == good (depending on your pref. - this is shape optimization)

  6. #16
    Advisor
    Join Date
    Apr 2002
    Posts
    858

    Re:Making fonts acceptable

    [quote author=Lovechild link=board=6;threadid=6431;start=0#61916 date=1047621921]
    smooth + bytecode hinter == bad !

    smooth + free hinter == good (depending on your pref. - this is shape optimization)
    [/quote]

    Ah, I see, so that's why they looked horrible with it. So how do you install this free hinter? does it require some tampering? (I'm on gentoo btw)

  7. #17
    Guest

    Re:Making fonts acceptable

    This should do it

    Code:
    # Copyright 1999-2003 Gentoo Technologies, Inc.
    # Distributed under the terms of the GNU General Public License v2
    # $Header: /home/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.1.3-r2.ebuild,v 1.6 2003/03/12 19:06:26 zwelch Exp $
                                                                                                                                
    IUSE="doc"
                                                                                                                                
    inherit eutils flag-o-matic
                                                                                                                                
    FT_SMOOTH_VER="20021210"
                                                                                                                                
    SPV="`echo ${PV} | cut -d. -f1,2`"
    S="${WORKDIR}/${P}"
    DESCRIPTION="A high-quality and portable font engine"
    SRC_URI="mirror://sourceforge/freetype/${P}.tar.bz2
        doc? ( mirror://sourceforge/${PN}/ftdocs-${PV}.tar.bz2 )
        smooth? ( http://www.cs.mcgill.ca/~dchest/xfthack/ft-smooth-${FT_SMOOTH_VER}.tar.gz )"
    HOMEPAGE="http://www.freetype.org/"
                                                                                                                                
    SLOT="2"
    LICENSE="FTL | GPL-2"
    KEYWORDS="~x86 ~ppc ~sparc alpha ~hppa arm"
                                                                                                                                
    DEPEND="virtual/glibc"
                                                                                                                                
    src_unpack() {
        unpack ${A}
                                                                                                                                
                                                                                                                            
        cd ${S}
        # Patches fro better rendering quality.  Home page:
        #
        #  http://www.cs.mcgill.ca/~dchest/xfthack/
        #
       use smooth && epatch ${WORKDIR}/ft-smooth-${FT_SMOOTH_VER}/ft-all-together.diff
                                                                                                                                
        # Slight Hint patch from Redhat
        epatch ${FILESDIR}/${SPV}/${P}-slighthint.patch
    }
                                                                                                                                
    src_compile() {
        # Enable Bytecode Interpreter.
    i#    append-flags "${CFLAGS} -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER"
                                                                                                                                
        make CFG="--host=${CHOST} --prefix=/usr" || die
        emake || die
                                                                                                                                
        # Just a check to see if the Bytecode Interpreter was enabled ...
        if [ -z "`grep TT_Goto_CodeRange ${S}/objs/.libs/libfreetype.so`" ]
        then
            eerror "Could not enable Bytecode Interpreter!"
            die "Could not enable Bytecode Interpreter!"
        fi
    }
                                                                                                                                
    src_install() {
        make prefix=${D}/usr install || die
                                                                                                                                
        dodoc ChangeLog README
        dodoc docs/{BUGS,BUILD,CHANGES,*.txt,PATENTS,readme.vms,TODO}
                                                                                                                                
        use doc && dohtml -r docs/*
    }

  8. #18
    Advisor
    Join Date
    Apr 2002
    Posts
    858

    Re:Making fonts acceptable

    Excellent, thanks LC, worked like a charm after a little tampering. For anyone else wanting to do this, here's what I ended up with that worked:

    Code:
    # Copyright 1999-2003 Gentoo Technologies, Inc.
    # Distributed under the terms of the GNU General Public License v2
    # $Header: /home/cvsroot/gentoo-x86/media-libs/freetype/freetype-2.1.3-r2.ebuild,v 1.6 2003/03/12 19:06:26 zwelch Exp $
                                                                                                                                
    IUSE="doc"
                                                                                                                                
    inherit eutils flag-o-matic
                                                                                                                                
    FT_SMOOTH_VER="20021210"
                                                                                                                                
    SPV="`echo ${PV} | cut -d. -f1,2`"
    S="${WORKDIR}/${P}"
    DESCRIPTION="A high-quality and portable font engine"
    SRC_URI="mirror://sourceforge/freetype/${P}.tar.bz2
        doc? ( mirror://sourceforge/${PN}/ftdocs-${PV}.tar.bz2 )
        smooth? ( http://www.cs.mcgill.ca/~dchest/xfthack/ft-smooth-${FT_SMOOTH_VER}.tar.gz )"
    HOMEPAGE="http://www.freetype.org/"
                                                                                                                                
    SLOT="2"
    LICENSE="FTL | GPL-2"
    KEYWORDS="~x86 ~ppc ~sparc alpha ~hppa arm"
                                                                                                                                
    DEPEND="virtual/glibc"
                                                                                                                                
    src_unpack() {
        unpack ${A}
                                                                                                                                
                                                                                                                            
        cd ${S}
        # Patches fro better rendering quality.  Home page:
        #
        #  http://www.cs.mcgill.ca/~dchest/xfthack/
        #
      use smooth && epatch ${WORKDIR}/ft-smooth-${FT_SMOOTH_VER}/ft-all-together.diff
                                                                                                                                
        # Slight Hint patch from Redhat
        epatch ${FILESDIR}/${SPV}/${P}-slighthint.patch
    }
                                                                                                                                
    src_compile() {
        # Enable Bytecode Interpreter.
    #    append-flags "${CFLAGS} -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER"
                                                                                                                                
        make CFG="--host=${CHOST} --prefix=/usr" || die
        emake || die
                                                                                                                                
        # Just a check to see if the Bytecode Interpreter was enabled ...
    # except we don't want to do that since we disabled it.
    #    if [ -z "`grep TT_Goto_CodeRange ${S}/objs/.libs/libfreetype.so`" ]
    #    then
    #        eerror "Could not enable Bytecode Interpreter!"
    #        die "Could not enable Bytecode Interpreter!"
    #    fi
    }
                                                                                                                                
    src_install() {
        make prefix=${D}/usr install || die
                                                                                                                                
        dodoc ChangeLog README
        dodoc docs/{BUGS,BUILD,CHANGES,*.txt,PATENTS,readme.vms,TODO}
                                                                                                                                
        use doc && dohtml -r docs/*
    }

  9. #19
    Guest

    Re:Making fonts acceptable

    to make it even more fun, make 2.1.3-r2 download freetype2-current instead, just remember to set S=${WORKDIR}/freetype2-current/

Similar Threads

  1. Forgets acceptable startup programs
    By gfarley in forum Windows - General Topics
    Replies: 0
    Last Post: 04-03-2005, 01:43 PM
  2. Making themes
    By Stuart in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 09-30-2003, 01:25 AM
  3. Making a CD-ROM executable
    By cloverm in forum Linux - General Topics
    Replies: 5
    Last Post: 05-10-2002, 12:09 AM
  4. Making KDE faster.....?
    By rick420 in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 03-03-2002, 09:00 PM
  5. Making a New Layout
    By jman_77 in forum Announcements and Suggestions
    Replies: 2
    Last Post: 11-08-2001, 05:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •