Closed Bug 425367 Opened 16 years ago Closed 16 years ago

Support for stretchy fences built from glyphs in SymbolMT

Categories

(Core :: MathML, defect, P2)

x86
Windows XP
defect

Tracking

()

RESOLVED FIXED
mozilla1.9

People

(Reporter: karlt, Assigned: karlt)

References

Details

(Keywords: regression)

Attachments

(4 files, 2 obsolete files)

MS Windows XP has little Unicode font support for stretchy fences (brackets).
The Monotype Symbol font has some useful glyphs for building these characters
and with bug 399636 now fixed we can easily access these glyphs from the PUA
without the font getting in the way of Unicode characters.

The lack of SymbolMT support is a regression.  Mozilla 1.8 handled this
font through font-specific encoding conversions.

Mac has a Unicode Symbol font and so doesn't need any special support.

We shouldn't make any assumptions about the encoding of a font with family
name Symbol on Unix because there exist Adobe, Monotype, and Apple fonts all
with family name Symbol, but each of them uses different encodings.

Linux doesn't need to use any Symbol font because most Linux systems have
DejaVu Sans and Standard Symbols L, which provide (at least) the same
functionality.
Even with Cambria Math installed (from PowerPoint Viewer 2007 or similar),
because we don't yet handle its new MATH OpenType table, we don't get access
to medium sized glyphs and so parentheses and curly brackets are either short
or tall.  (And the parts of left square bracket don't align nicely.)
Assignee: nobody → mozbugz
Status: NEW → ASSIGNED
(Cambria Math was not installed.)
This needs to be installed in res/fonts under the name mathfontSymbol.properties,
font.mathfont-glyph-tables in mathfont.properties needs to be modified to include "Symbol" and the font.mathfont-family preference needs to be modified to include "Symbol".
> because we don't yet handle its new MATH OpenType table

Bug 407059.
Depends on: 399636
Keywords: regression
It might have been nice to have a special file name for the Monotype font but the MathML code expects it to be installed with a filename based on the family name and nsinstall doesn't support renaming files.  No other platforms need a mathfontSymbol.properties file now so I'll just use this for SymbolMT to keep things simple.

I can't find PACKAGE_FILE used anywhere so I'm not sure what macros are defined when it is processed, or whether it matters.  Other PACKAGE_FILES appear to be using what look like makefile variables rather than ACDEFINES so I've just followed along there.

This also repositions Cambria Math in the list of default preferred fonts as it isn't rendering as well as I had expected (comment 1).
Attachment #312000 - Attachment is obsolete: true
Attachment #312791 - Flags: review?(pavlov)
Attachment #312791 - Flags: review?(pavlov) → review+
Comment on attachment 312791 [details] [diff] [review]
Add mathfontSymbol.properties for MS Windows

We should get this in because without it there would be many cases where the regression is noticeable on Windows XP (without extra fonts).

The patch only affects data files and build (no run-time code except prefs) so the possible effects of any risk are small.
Attachment #312791 - Flags: approval1.9?
Flags: blocking1.9?
+'ing w/ P2 as it's a regression.  
Flags: blocking1.9? → blocking1.9+
Priority: -- → P2
Attachment #312791 - Flags: approval1.9?
Comment on attachment 312791 [details] [diff] [review]
Add mathfontSymbol.properties for MS Windows

I checked this in but it caused all kinds of problems because the destination of the shell output redirection for mathfont.properties already existed as a was a symlink to the source file, so the source file got truncated.
Attachment #312791 - Attachment is obsolete: true
The simple solution is to rm -f the filename before writing to the file.
Attachment #313272 - Flags: review?(pavlov)
Attachment #313272 - Flags: review?(pavlov) → review+
http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&branch=HEAD&cvsroot=%2Fcvsroot&date=explicit&mindate=1207366621&maxdate=1207366786&who=karlt%2B%25karlt.net
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: