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
  •  


1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00



HPE ProLiant MicroServer Gen8 Intel Xeon E3-1265L 16GB ECC PCIe x16 4x1TB HDD picture

HPE ProLiant MicroServer Gen8 Intel Xeon E3-1265L 16GB ECC PCIe x16 4x1TB HDD

$249.99



HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES

$199.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ* picture

HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ*

$94.99



HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon picture

HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon

$846.19



Supermicro 5018A-FTN4 Rack Server - Black picture

Supermicro 5018A-FTN4 Rack Server - Black

$125.00



Microsel Server Tower Supermicro X10SAE E3-1275 V3 @3.5GHz 16GB 509849-001 picture

Microsel Server Tower Supermicro X10SAE E3-1275 V3 @3.5GHz 16GB 509849-001

$149.99



SUPERMICRO CSE-512 AMD Opteron Processor 6128, 32GB DDR3 RAM NO HDD picture

SUPERMICRO CSE-512 AMD Opteron Processor 6128, 32GB DDR3 RAM NO HDD

$90.00



1U 20

1U 20" Short Depth Server Firewall PFSense X11SSH-F Xeon 3.5Ghz 32GB RAM NVME

$247.00