Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2002 17:29:56 -0600
From:      D J Hawkey Jr <hawkeyd@visi.com>
To:        hal@foobox.net
Subject:   Your XF86 De-uglification Howto

| raw e-mail | index | archive | help
--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi. Hope you don't mind this intrusion.

First off, nice set of pages. I found them straight-forward, and up-to-
date. Even the external hyperlinks aren't stale!

However, I have run into an obstacle that's driving me nuts. Everything
goes well until section 5.2, Xft and Mozilla. However, when I go into
Moz's "Edit -> Preferences -> Appearance -> Fonts", and try to select
TTF fonts, I don't get any that begin with an uppercase letter. They
all are of a foundry-face-iso-digit style listing (like an abbreviated
XFLD), and they are all lowercase.

It doesn't matter what font I select, the same thing always occurs:
Un-antialiased rendition until the fonts get _really_ big, and then only
some fonts, at that. This is Mozilla 1.1, BTW.

A few particulars: I'm running FreeBSD 4.5-REL-p23 and Xfree86 4.2, as
supplied by the XFree86 project (that is, a binary package for FreeBSD
built by by them). /usr/X11R6/include/freetype2/freetype/config/ftoption.h
as supplied by the project has TT_CONFIG_OPTION_BYTECODE_INTERPRETER
defined, and /usr/X11R6/lib has libfreetype.so.8 in it. I'm running a
1024x768, 75-dpi, display on a 15-inch CRT (I do hate how 100-dpi fonts
look, TTF or otherwise). All the requisites of the X server are present
(RENDER, etc.). I've run 'ttmkfdir' in the font directories, and used
that Perl script (which needed a few small changes to run) to create
font.alias files, just in case Moz needs that.

I attach my /etc/X11/XftConfig and $HOME/.mozilla/default/.../user.js
files; can you tell me where I've gone wrong? I can supply more info as
you think you need, of course. Note that much of the TTF stuff in user.js
is commented, but they make no difference when enabled either.

Thanks,
Dave

-- 
  ______________________                         ______________________
  \__________________   \    D. J. HAWKEY JR.   /   __________________/
     \________________/\     hawkeyd@visi.com    /\________________/
                      http://www.visi.com/~hawkeyd/

--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=us-ascii
Content-Description: XftConfig
Content-Disposition: attachment; filename=XftConfig

#
# XftConfig
#
# Use with Type1 and TrueType fonts
#

dir "/usr/X11R6/lib/X11/fonts/Type1"
dir "/usr/X11R6/lib/X11/fonts/TTF"
dir "/usr/X11R6/lib/X11/fonts/truetype"

#
# alias 'fixed' for 'mono'
#
match any family == "fixed"		edit family =+ "mono";

#
# Check users config file
#
includeif	"~/.xftconfig"

#
# Substitute TrueType fonts for Type1 versions
#
match any family == "Times"		edit family += "Times New Roman";
match any family == "Helvetica"		edit family += "Verdana";
match any family == "Courier"		edit family += "Courier New";

#
# Use Luxi fonts for defaults
#
match any family == "serif"		edit family += "Luxi Serif";
match any family == "sans"		edit family += "Luxi Sans";
match any family == "mono"		edit family += "Luxi Mono";

#
# Alias between XLFD families and font file family name, prefer local fonts
#
match any family == "Charter"		edit family += "Bitstream Charter";
match any family == "Bitstream Charter"	edit family =+ "Charter";
match any family == "Lucidux Serif"	edit family += "LuciduxSerif";
match any family == "LuciduxSerif"	edit family =+ "Lucidux Serif";
match any family == "Lucidux Sans"	edit family += "LuciduxSans";
match any family == "LuciduxSans"	edit family =+ "Lucidux Sans";
match any family == "Lucidux Mono"	edit family += "LuciduxMono";
match any family == "LuciduxMono"	edit family =+ "Lucidux Mono";

#
# TrueType font aliases
#
match any family == "Comic Sans"	edit family += "Comic Sans MS";
match any family == "Comic Sans MS"	edit family =+ "Comic Sans";
match any family == "Trebuchet"		edit family += "Trebuchet MS";
match any family == "Trebuchet MS"	edit family =+ "Trebuchet";
match any family == "Monotype"		edit family =+ "Monotype.com";
match any family == "Andale Mono"	edit family += "Monotype.com";
match any family == "Monotype.com"	edit family =+ "Andale Mono";

#
# Alias older name for Luxi fonts
#
match any family == "Lucidux Serif"	edit family += "Luxi Serif";
match any family == "LuciduxSerif"	edit family += "Luxi Serif";
match any family == "Lucidux Sans"	edit family += "Luxi Sans";
match any family == "LuciduxSans"	edit family += "Luxi Sans";
match any family == "Lucidux Mono"	edit family += "Luxi Mono";
match any family == "LuciduxMono"	edit family += "Luxi Mono";

#
# Set up AntiAliasing
#
match any size < 8			edit antialias = false;
match
	any family == "webdings"
edit
	antialias = false;
	encoding += "glyphs-fontspecific";
match
	any family == "symbol"
edit
	antialias = false;
	encoding += "glyphs-fontspecific";
match
	any family == "Standard Symbols L"
edit
	antialias = false;
	encoding += "glyphs-fontspecific";
match
	any family == "dingbats"
edit
	antialias = false;
	encoding += "glyphs-fontspecific";
match
	any family == "Cursor"
edit
	antialias = false;
	encoding += "glyphs-fontspecific";


--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=us-ascii
Content-Description: user.js
Content-Disposition: attachment; filename="user.js"

////////////////////////////////////////////////////////////
// Turning off annoyances
////////////////////////////////////////////////////////////

// Image animation mode: normal, once, none.
user_pref("image.animation_mode", "once");

// Show pref UI to block images that don't come from the current server
//user_pref("imageblocker.enable", true);

// Turn that annoying autocomplete popup REALLY off:
// (This actually has a UI but it's buried.)
user_pref("browser.urlbar.autocomplete.enabled", false);
user_pref("browser.urlbar.showPopup", false);
user_pref("browser.urlbar.showSearch", false);

// Most Unix people think modal pref windows are stupid:
user_pref("browser.prefWindowModal", false);

////////////////////////////////////////////////////////////
// UI look-and-feel issues
////////////////////////////////////////////////////////////

// Don't ever show me a font smaller than this: see bug 30910.
// This is the new cross-platform pref; the old Unix-only
// font.min-size pref is deprecated and will be removed soon.
// There may eventually be some related UI, from bug 61883.
user_pref("font.minimum-size.x-western", 12);

// Set the submenu delay to be really long.
// This means that menus will stay posted until I click somewhere,
// making them behave more like Motif menus instead of un-posting
// whenever my mouse strays one pixel off the menu or cuts
// across the border between a menu and a submenu:
//user_pref("ui.submenuDelay", 7000);

// Set select background for text widgets:
//user_pref("ui.textSelectBackground", "green");

////////////////////////////////////////////////////////////
// Control of popup windows
////////////////////////////////////////////////////////////

// Use configurable security policies to override popups, see
// http://www.mozilla.org/projects/security/components/configPolicy.html
// Turn window.open off for particular sites:
//user_pref("capability.policy.popupsites.sites", "http://www.annoyingsite1.com http://www.popupsite2.com");
//user_pref("capability.policy.popupsites.Window.open","noAccess");
// Or turn it off everywhere:
//user_pref("capability.policy.default.Window.open","noAccess");

// More important, disable JS windows popping up a new window on load
// (as lots of porn and spam sites do):
user_pref("dom.disable_open_during_load", true);

// Override popping up new windows on target=anything
//user_pref("browser.target_new_blocked", true);

////////////////////////////////////////////////////////////
// Miscellaneous stuff
////////////////////////////////////////////////////////////

// Override the default user-agent string:
//user_pref("general.useragent.override", "Mozilla/5.0 (X11; U; Linux 2.2.16-22smp i686; en-US; m18) Gecko/20010110 Netscape6/6.5");

// Syntax highlighting in View Source
//user_pref("browser.view_source.syntax_highlight", false);

// In chatzilla, show original text in addition to smiley substitutions:
//user_pref("extensions.irc.munger.smileyText", true);

// Wrap column for html output from the editor:
user_pref("editor.htmlWrapColumn", 72);

// Show JS warnings:
//user_pref("javascript.options.strict", true);

// Enable TrueType fonts:
user_pref("font.FreeType2.enable", true);
//user_pref("font.FreeType2.shared-library", "libfreetype.so.8");
//user_pref("font.FreeType2.autohinted", true);
//user_pref("font.FreeType2.unhinted", false);
//user_pref("font.antialias.min", 10);
//user_pref("font.embedded_bitmaps.max", 1000000);
//user_pref("font.scale.tt_bitmap.dark_text.min", 64);
//user_pref("font.scale.tt_bitmap.dark_text.gain", "0.8");
user_pref("font.directory.truetype.1", "/usr/X11R6/lib/X11/fonts/TTF");
user_pref("font.directory.truetype.2", "/usr/X11R6/lib/X11/fonts/truetype");

user_pref("helpers.private_mailcap_file","/home/hawkeyd/.mailcap");
user_pref("helpers.private_mime_types_file","/home/hawkeyd/.mime.types");

////////////////////////////////////////////////////////////
// Useful mail/news prefs
////////////////////////////////////////////////////////////

// 0=bottom 1=top 2=select+bottom 3=select+top
// Mozilla defaults it to 0, but Netscape defaults it to 1 (yuck).
//pref("mailnews.reply_on_top", 0);

// Show the user agent of incoming messages
//user_pref("mailnews.headers.showUserAgent", true);

// Turn off the history addrbook
//user_pref("mail.collect_email_address", false);

// Turn off graphical reply style in the message window
//pref("mail.quoted_graphical", false);
// display glyph, see http://www.bucksch.org/1/projects/mozilla/16507
//pref("mail.display_glyph", true);   

// use HTML-style quoting for quoting plain text (during HTML replies)
//pref("mail.quoteasblock", true);

// Format=flowed prefs, RFC 2646
//pref("mailnews.send_plaintext_flowed", true);
//user_pref("mailnews.display.disable_format_flowed_support", true);
//pref("mail.display_struct", true);
//pref("mail.send_struct", false);

--HcAYCG3uE/tztfnV--


--jI8keyz6grp/JLjh--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>