Closed
Bug 372351
(cambria-math)
Opened 18 years ago
Closed 11 years ago
Support of Microsoft Cambria Math Fonts for MathML
Categories
(Core :: MathML, enhancement, P5)
Core
MathML
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: markus+mozilla, Assigned: fredw)
References
(Depends on 2 open bugs)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2
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
wget http://download.microsoft.com/download/9/2/2/9222d67f-7630-4f49-bd26-476b51517fc1/FileFormatConverters.exe
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
http://microsoft.com/downloads/details.aspx?FamilyID=048dc840-14e1-467d-8dca-19d2a8fd7485
[2] Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats
http://microsoft.com/downloads/details.aspx?FamilyId=941B3470-3AE9-4AEE-8F43-C6BB74CD1466
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Reporter | ||
Updated•18 years ago
|
OS: Windows XP → All
Hardware: PC → All
Reporter | ||
Comment 1•18 years ago
|
||
Above should read:
fileformatconverters /quiet /extract:ffc
expand -f:*.tt? ffc\*.cab c:\windows\fonts
rd /q/s ffc
wget http://download.microsoft.com/download/9/2/2/9222d67f-7630-4f49-bd26-476b51517fc1/FileFormatConverters.exe
cabextract -d ffc -LF*.cab FileFormatConverters.exe
cabextract -d ~/.fonts -LF*.tt? ffc/*.cab
rm -r ffc
Updated•18 years ago
|
Assignee: nobody → rbs
Component: General → MathML
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.8 Branch
Reporter | ||
Comment 2•18 years ago
|
||
See e.g. also:
http://unicode.org/notes/tn28/
http://blogs.msdn.com/murrays/
http://scripts.sil.org/svn-view/xetex/TRUNK/texk/web2c/xetexdir/MathTable.h
http://scripts.sil.org/svn-view/xetex/TRUNK/texmf/source/xelatex/unicode-math/unicode-math.pdf
http://microsoft.com/typography/tools/tools.htm (TTFdump)
http://fonttools.sf.net (TTX: Code->CVS + Tracker->Patches)
http://partners.adobe.com/public/developer/opentype/afdko/ (tx -pdf -A *.ttc)
Reporter | ||
Comment 3•18 years ago
|
||
Cambria & Cambria Math Glyph Set:
http://www.tiro.nu/Articles/Cambria/Cambria_Math_Basic_Spec_V1.pdf
http://www.alanwood.net/unicode/fonts.html#cambriamath
Updated•17 years ago
|
Should Version be changed to Trunk? Or has this already been fixed on the trunk?
Comment 5•17 years ago
|
||
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
Comment 6•17 years ago
|
||
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
mathfontCambriaMath.properties 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
glyphs.
Updated•15 years ago
|
QA Contact: ian → mathml
Assignee | ||
Updated•15 years ago
|
Assignee: rbs → nobody
Assignee | ||
Updated•13 years ago
|
Alias: cambria-math
Assignee | ||
Updated•12 years ago
|
Priority: -- → P5
Assignee | ||
Comment 7•11 years ago
|
||
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:
https://developer.mozilla.org/en-US/docs/Mozilla/MathML_Project/MathML_Torture_Test
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → fred.wang
You need to log in
before you can comment on or make changes to this bug.
Description
•