Closed Bug 229280 Opened 21 years ago Closed 21 years ago

MathML fonts (TrueType and Type 1) not recognized on FreeBSD

Categories

(Firefox :: General, defect)

x86
FreeBSD
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: larne, Assigned: bugzilla)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031113 Firebird/0.7
Build Identifier: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031113 Firebird/0.7

Fonts installed for MathML (CMEX10, CMSY10, Math1, Math2, Math4, Symbol) are not
recognized or used.  Various X font utilities (xlsfonts, xfontsel, xfd) can see
and use these fonts.  An installation of linux-mozillafirebird from ports
running side-by-side with the native FreeBSD version uses the fonts correctly.

Reproducible: Always

Steps to Reproduce:
1. Install Firebird from ports
2. Install Type 1 or Truetype fonts according to instructions from
http://www.mozilla.org/projects/mathml/fonts/
3. Add fonts to X in the standard way (type1inst; xset fp+ the_dir; xset fp rehash)
4. Restart Firebird
5. Access any page with MathML

Actual Results:  
Popup notification that the required fonts are not installed; missing glyphs;
solid rectangles beneath radicals; no stretchy characters

Expected Results:  
MathML rendered as on the Linux verison of Firebird.

XFree86-Server-4.3.0_10, XFree86-FontServer-4.3.0_2, "type1" and "freetype"
enabled in XF86Config
Well, there are two different flavors of Unix builds, X11core and Xft. The
procedure outlined in the MathML project page is only applicable to the former. 
(I asked rbs to update the page, but ...). For the latter, you just have to
throw truetype fonts (Mathematica, TeX CM) and Type1 Symbol (from Adobe Acroread)
font into one of directories searched for by fontconfig.

 It's possible that the FreeBSD native build was compiled with different build
options from those used to build the Linux build. Why don't you post what you
get in 'about:buildconfig' (type 'about:buildconfig' in the URL/location bar) 
in both builds? 
Yes indeed, the FreeBSD build is built with --enable-xft, the linux version is
not.  Placing the fonts you suggested in a directory and creating a
~/.fonts.conf with en entry for that directory fixes the problem (and the
results look even nicer!)

I'll attach the about:buildconfig results in case they turn out to be useful
elsewhere.  Thanks very much!
Welcome to the nice new world of Mozilla-Xft ! :-) You'd never want to go back.

Marking as invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: