Results 1 to 4 of 4

Thread: Antialiased Fonts, Xft hack and xft enabled mozilla

  1. #1
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510

    Antialiased Fonts, Xft hack and xft enabled mozilla

    Before any changes, base KNOPPIX
    http://www.rit.edu/~jjp6893/fonts/snapshot1.png
    Adding fonts to KDE, enabling AA in Control Center, choosing MS Windows fonts for use in KDE
    http://www.rit.edu/~jjp6893/fonts/snapshot2.png
    After installing XFT enabled Mozilla 1.2b
    http://www.rit.edu/~jjp6893/fonts/snapshot3.png
    After using Xft -hack by replacing libfreetype
    http://www.rit.edu/~jjp6893/fonts/snapshot4.png

    I used the described instructions for adding fonts to KDE and I read & remebered somewhere how to do the same for OpenOffice.
    If you do this as root then you will have the fonts for all users. If not then the fonts will font be available to your currently assumed user.

    Run the following:
    # /opt/openoffice/spadmin
    This pops up a "Printer Administration" window. Click on the "Fonts..." button on the bottom. Click on "Add..." button on the right side of new dialog box. You need to point this utility to the source directory for the new fonts, so click "...". I previously mounted my windows partition as /mnt/hda1 so I choose the directory /mnt/hda1/winnt/Fonts and clicked "Select". It will loadup all the fonts in that directory for possible installation. I then clicked "Select All" and hit "OK". It told me 113 fonts were added. I closed the "Fonts" dialog box and closed the "Printer Administration" window.
    Now you have access to alll those fonts in OpenOffice.

    I found a webpage that describes how to get a xft AA-font enabled version of Mozzilla into Debian, which is the base for KNOPPIX.
    http://www.deadman.org/X/
    it is down the page. search the page for xft
    As root:
    With your favorite editor
    # {EDITOR} /etc/apt/sources.list

    add the following line at the end of the file:
    deb http://verbum.org/~walters/debian/ local/$(ARCH)/

    Save & exit editor.

    # apt-get update

    # apt-get install fontconfig libfontconfig1 libxft2

    If you don't have alien installed, then:
    # apt-get install alien

    Next, download and save this rpm of Mozilla 1.2b that uses special AA for text:
    http://komodo.mozilla.org/pub/mozill...8_xft.i386.rpm

    I used aptitude and removed mozilla from the base KNOPPIX Nov 08, 2002. It tried to remove other mozilla dependent packages but I held them back. I do not know if removing the KNOPPIX version of mozilla breaks & destroys functionallity with any other installed packages. If you attempt to run the next command without removing mozilla, it will fail saying:
    root@dualcrush:/usr/src# alien -di mozilla-1.2b-2002110408_trunk_rh8_xft.i386.rpm
    dpkg - warning: downgrading mozilla from 2:1.1-1 to 0:1.2b-2002110409.
    dpkg: regarding mozilla_1.2b-2002110409_i386.deb containing mozilla:
    mozilla-browser conflicts with mozilla (<< 1:0.8)
    mozilla (version 1.2b-2002110409) is to be installed.
    dpkg: error processing mozilla_1.2b-2002110409_i386.deb (--install):
    conflicting packages - not installing mozilla
    Errors were encountered while processing:
    mozilla_1.2b-2002110409_i386.deb
    Unable to install at /usr/share/perl5/Alien/Package/Deb.pm line 90.
    Now with mozilla removed run:
    # alien -di mozilla-1.2b-2002110408_trunk_rh8_xft.i386.rpm

    It should install with no errors.

    Now run mozilla and in the menu Edit -> Preferences. In the left side select Appearances then Fonts. Select the fonts you wish mozilla to use. You can get a good idea of which fints to use by customizing KDE's fonts via the KDE Control Center -> Look & Feel -> Fonts. Now with the fonts selected in mozilla. I close mozilla and re-ran it to make sure it took its settings.

    slashdot.org looks alot better.

    Xft-hack can be installed by downloading the .tar.gz and save it to /usr/src
    Then you must exit out of your Xsession and drop to a console because the old library is currently in use when you are in X.
    # cd /usr/src
    # tar zxvf THE_FILE
    # cd ft-slight-DATE
    # find / -iname 'libfreetype.so*' -print -exec ls -l {} \; | more
    that find command will show us which file to replace
    We can now make a backup copy of libfreetype and replaced with the hacked one.
    # cp /usr/lib/libfreetype.so.6.3.2 /usr/lib/BAK-libfreetype.so.6.3.2
    # cp libfreetype.so.6.3.2 /usr/lib/libfreetype.so.6.3.2

    Now jump back into X to see the changes.
    Enjoy!

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353

    Nice Tips!

    Way to go UnderScore! This info is quite helpful for improving fonts in Knoppix. BTW, the pics are nice. They do a good job at illustrating the improvements that can be gained with a bit of tweaking. Yes Slashdot looks TONS better in the last pic.

    I'm really hoping that maybe Klaus and/or other maintainers will work the xft hack into one of the next releases. Maybe a Debian xft Mozilla will be made available soon and it could be included too. If not, it seems to me that the rpm version could be utilized for the time being.

    If all else fails, there's allways remastering and the tips page here at knoppix.net is getting better on that subject too.

    Adam

  3. #3
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Auckland, New Zealand
    Posts
    818
    Nice One: )
    The fonts look great.
    I don't think you can freely distribute the MS fonts on a remastered knoppixcd, so I hope it will look as good with free fonts

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353
    That's certainly true. We don't need the MS fonts in knoppix, but I hope to see new font tools (like the xft hack that underscore refers to) added. Then users who have a licensed copy of windows should be able to install the fonts themselves or at least get the core fonts here: http://corefonts.sourceforge.net/ and then install them.

Similar Threads

  1. HACK
    By illcuban in forum General Support
    Replies: 3
    Last Post: 12-24-2003, 07:50 AM
  2. Knoppix 2003-11-14 Mozilla 1.5 AA fonts?
    By rbrown3rd in forum Customising & Remastering
    Replies: 0
    Last Post: 11-20-2003, 02:48 PM
  3. Mozilla menu fonts after knx-hdinstall
    By tearinghairout in forum General Support
    Replies: 7
    Last Post: 10-30-2003, 04:41 PM
  4. Mozilla 1.4 upgrade wierded my fonts out!
    By Tortoise in forum General Support
    Replies: 3
    Last Post: 07-09-2003, 09:09 AM
  5. Mozilla Menu Fonts
    By milesj in forum General Support
    Replies: 0
    Last Post: 04-02-2003, 08:54 AM

Posting Permissions

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


IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server  picture

IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server

$209.98



IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD picture

IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD

$399.99



IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES picture

IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES

$27.25



ibm server z series picture

ibm server z series

$16000.00



IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server picture

IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server

$319.99



IBM SYSTEM x3200 M2 Server - HDD wiped, No OS picture

IBM SYSTEM x3200 M2 Server - HDD wiped, No OS

$75.00



IBM BladeCenter HS21 7995 AC1 Server - 1x Xeon E5440 2GB RAM - NO HDDs picture

IBM BladeCenter HS21 7995 AC1 Server - 1x Xeon E5440 2GB RAM - NO HDDs

$22.43



IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W picture

IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W

$199.00



IBM System X3500 M4 7383AC1 (E5-2650 v2 2.60GHz - 192GB RAM - M2000 - NO OS/HDD) picture

IBM System X3500 M4 7383AC1 (E5-2650 v2 2.60GHz - 192GB RAM - M2000 - NO OS/HDD)

$294.92



IBM SYSTEM x3650 M4 Xeon E5-2609 2.40GHZ 16GB DDR3-1066MHZ 2x 550W PSU TESTED picture

IBM SYSTEM x3650 M4 Xeon E5-2609 2.40GHZ 16GB DDR3-1066MHZ 2x 550W PSU TESTED

$109.95