This is the old SliTaz forum - Please use the main forum.slitaz.org

font hinting byte-code interpreter enabled
  • michaelkbischofmichaelkbischof January 2011
    A question for the Nerds here may be:
    is the font hinting done on Slitaz (it uses freetype, yes?) done with the byte-code interpreter enabled or not?
    I tried to do what I have been accustomed under Mandriva and apply a libfreetype6-plf-rpm, which improves the fonts there quite a bit, by using ,,tazpkg convert *.rpm *.tazpkg" but that failed under Slitaz 3.0.

    Therefore this question.

    Yours sincerely,

    Michael
  • Trixar_zaTrixar_za January 2011
    I see the double post bug is back.. :/
  • Trixar_zaTrixar_za January 2011
    Font hinting? You only need fontconfing for that. So try this:

    1. Create a fine called .font.conf in your home directory
    2. Add the following code to it:
    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
       <match target="font">
         <edit name="hinting" mode="assign">
            <bool>true</bool>
         </edit>
       </match>

    <!-- Disables Auto-hinting because it looks crap -->
      <match target="font">
        <edit name="autohint" mode="assign">
          <bool>false</bool>
        </edit>
      </match>

    <!-- Sets hinting style: hintnone, hintslight, hintmedium, hintfull -->
       <match target="font">
         <edit name="hintstyle" mode="assign">
           <const>hintslight</const>
         </edit>
       </match>
    </fontconfig>
    3. Save and restart or logout (X.org needs to be restarted... so yeah). This should enable Byte-code Font Hinting like you'd expect.

    Reference: https://wiki.archlinux.org/index.php/Font_Configuration
    I personally enable sub-pixel rendering and anti-aliasing too - but the latter is normally turned on by default with most linuxes.
  • michaelkbischofmichaelkbischof January 2011
    Thank you, Trixar-za,
    that helped indeed. But I cannot come with it to the look that Mandriva after applying that plf-variant of the libfreetype6 delivers. I had tried to use ,,tazpkg convert" but that failed. Now I know why:
    That plf-program had been compiled with ,,glibc_2.11" and apparently my Slitaz cannot make use of it. It would be necessary to try to compile the very modern version of freetype (remember: the patent issue finished in August 2010!) on Slitaz. But such a thing I cannot do as I lack know how for such a thing. Compiling does not come to me, bad memories live up! ;-)
  • Trixar_zaTrixar_za January 2011
    lol, true.

    Slitaz only comes with the basic dejavu fonts, which kind of sucks. But luckily you can install libsdl-ttf, ttf-bitstream-vera and ttf-dejavu-extra to expand on your choices a bit.

    There is also the xfree86-base-fonts package, but I've never used it.

    You can also grab the microsoft core fonts with this package by mojo:  http://www.mediafire.com/file/coccizjwz79jbf5/msttcorefonts-2.0.tazpkg

    Probably won't give you all the fonts you want, but atleast it will offer some verity hey. You can also mess with the intensity of the hinting. I personally use hintslight, but my friend uses hintfull for his netbook. It's down to how 'rich' you need the hinting to be.

    Oh and I converted over the debian package of libfreetype6 for you which you can grab here: http://www.trixarian.za.net/downloads/libfreetype6.tazpkg
    You'll also probably need to install this: http://www.trixarian.za.net/downloads/zlib1g-1.2.3.3.tazpkg before it will work though.

    I'm not sure how well it work though, since the applications will need to have support for it enabled before it works. But there you have it ;)

    PS: In case you didn't know, you use tazpkg get-install to get and install a package from the repository, while you use tazpkg install to install a package you downloaded manually.
  • michaelkbischofmichaelkbischof January 2011
    Puh, I am positively shocked! Thanks a lot!
    This speed of reply matches that of the legendary user flux in the old Slax forum (the guy who constructed fluxflux-sl).
    I will try out your proposals in a short time. Msttcorefonts I had alreay used on another machine with success.

    Regards,

    Michael
  • michaelkbischofmichaelkbischof January 2011
    Yes, done and it worked with ease! The result: especially with Abiword the fonts look really improved now plus the Desktop surface as well.
    Thanks for your quick help! I am just having fun with Slitaz.  I will show this thread in school. Hopefully somebody feels invitend to learn more English!

    Regards,

    Michael
  • Trixar_zaTrixar_za January 2011
    Speaking of Abiword, try the copy found @ http://people.slitaz.org/~jozee/packages/ - it's a more up to date copy for stable.

    It does have two missing dependacies that it doesn't resolve properly, so make sure you install them before. The missing packages you'll need is glibc-locale and librsvg.

    Slitaz has many little secrets like that floating around, which makes it kind of fun to explore. I also have my own set of packages for Slitaz (mostly game emulators) @ http://www.trixarian.za.net/?Projects:SliTaz
  • michaelkbischofmichaelkbischof January 2011
    Yes, a little miracle chamber has opened with such ,,hidden" repesitories! ;-)
    But it contains worthless stuff as long as such commentaries like

        ,,It does have two missing dependacies that it doesn't resolve properly,
    so make sure you install them before. The missing packages you'll need
    is glibc-locale and librsvg."

    are given with it. That is fun, indeed.
  • Trixar_zaTrixar_za January 2011
    Sometimes the packager forgets to add all the run-time dependacies. Probably because their system already had it installed when they made it and it wasn't mentioned as one of the runtime depenacies in the README or INSTALL files.

    You'd be surprised how many times this happens - even with packagers from debian and Ubuntu.
  • michaelkbischofmichaelkbischof January 2011
    May be a stupid question: can't you check it quick wit ldd <path-to-the-executable>?
    You are absolute right: it happens too often, disrespectful of ,,big names".

    And  the good news finally: Manfred Müller from fluxflux reports here
    http://fluxflux.net/forum/index.php?topic=778.msg4934#new
    that the freetype projects supplies all freetype software

    "... it thus no longer necessary to disable the
    bytecode interpreter, and starting with FreeType version 2.4, it is
    enabled by default." (http://freetype.sourceforge.net/patents.html)

    This will apply then to all distributions that use freetype.

    And, damned, after applying your packages my slitaz looks very much improved!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social