Note: There are a few cases of duplicates in user autocompletion which are being worked on.
Bug 372351 (cambria-math)

Support of Microsoft Cambria Math Fonts for MathML

RESOLVED FIXED in mozilla31



11 years ago
3 years ago


(Reporter: Markus Gyger, Unassigned)


(Depends on: 2 bugs)

Dependency tree / graph

Firefox Tracking Flags

(Not tracked)




11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070219 Firefox/
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070219 Firefox/

Windows Vista and Office 2007 come with new fonts Cambria and Cambria Math. They are also installed as part of PowerPoint Viewer 2007[1] and the Microsoft Office Compatibility Pack[2]. These fonts should be used for MathML if available.

On Windows XP, the fonts only can also be installed from the Compatibility Pack[2] using the following in Command Prompt (cmd):

fileformatconverters /quiet /extract:ffc
expand -f:*.tt? ffc\*.cab \windows\fonts

To install them on Linux/Unix, use

cabextract -d ffc -LF*.cab FileFormatConverters.exe
cabextract -d ~/.fonts -LF*.tt? ffc/*.cab

If there are problems with the TrueType Collection (TTC), 'split' it in two:

cd ~/.fonts
perl -0777pe 's/(.{32})(.{332})/$2$1/s' cambria.ttc > cambria.ttf
perl -0777pe 's/(.{364})(.{348})/$2$1/s' cambria.ttc > cambriamath.ttf
rm cambria.ttc
chmod +x Cambria.ttf CambriaMath.ttf  # only necessary on Cygwin

[1] PowerPoint Viewer 2007

[2] Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats

Reproducible: Always

Steps to Reproduce:


11 years ago
OS: Windows XP → All
Hardware: PC → All

Comment 1

11 years ago
Above should read:

fileformatconverters /quiet /extract:ffc
expand -f:*.tt? ffc\*.cab c:\windows\fonts
rd /q/s ffc

cabextract -d ffc -LF*.cab FileFormatConverters.exe
cabextract -d ~/.fonts -LF*.tt? ffc/*.cab
rm -r ffc
Assignee: nobody → rbs
Component: General → MathML
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.8 Branch

Comment 2

11 years ago
See e.g. also: (TTFdump) (TTX: Code->CVS + Tracker->Patches) (tx -pdf -A *.ttc)

Comment 3

11 years ago
Cambria & Cambria Math Glyph Set:


10 years ago
Depends on: 400938
Ever confirmed: true

Comment 4

10 years ago
Should Version be changed to Trunk? Or has this already been fixed on the trunk?
This is not fixed on Trunk.
Changing Version to Trunk, as I expect this'll be fixed on trunk before it is on 1.8.
Version: 1.8 Branch → Trunk


10 years ago
Depends on: 402473


10 years ago
Depends on: 407059
Partial support this font is now on trunk.
Unicode parts for stretchy chars are available from bug 400938.
Bug 289938 needs to be fixed for Unicode Plane 1 characters.

This font has no italic nor bold style for alphanumeric characters in plane 0
as they exist at their unique code points in plane 1.  To ensure that
<mi>a</mi> is displayed as italic we either need to complete the mathvariant
translation to plane 1 (bug 114365) or we need to ensure that synthetic italic
and bold are functional (e.g. bug 333126).  Currently the font-family in
mathml.css has "Cambria" before "Cambria Math" to work around this issue, but
"Cambria" should be removed once this issue is resolved.

The radical symbol bottom is available in this font and can be extended with
U+20D3 COMBINING SHORT VERTICAL LINE OVERLAY, but there is no character
mapping to the glyph for the top of the stretchy radical.  If the change to
the radical rule alignment code suggested in Bug 403958 is made, then adding a would enable use of this font to build radicals
of any height.

Bug 407059 is the best way to get the non-Unicode size-variants and parts for
stretchy characters, as there are no character maps for the non-Unicode
Depends on: 114365, 289938, 333126, 403958


10 years ago
Depends on: 412033
QA Contact: ian → mathml
Assignee: rbs → nobody
Alias: cambria-math
Priority: -- → P5
Depends on: 947650
Blocks: 947654
I'm closing all these font-specific meta bug since the main work has been done in bug 407059 and bug 947650. Remaining issues will be handled on the OpenType MATH bugs.

Once bug 1000879 is merged, one will be able to verify the initial OpenType MATH support with the MathML torture test:
Last Resolved: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.