Closed Bug 294376 Opened 19 years ago Closed 18 years ago

[Mac] Wrong default font sometimes used when non-default language specified

Categories

(Core Graveyard :: GFX: Mac, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: uriber, Assigned: jaas)

References

Details

(Keywords: intl, testcase)

Attachments

(4 files)

When a document specifies a language using the "lang" attribute, but does not
specify a font (other than perhaps "serif"/"sans-serif"), any run of text
containing non-ASCII characters is displayed using the default font of the
default language (rather than the default font of the specified language).

Moreover, the spacing between such a run of text and any following text is
incorrect.

Testcase and screenshot coming up.
Attached file testcase
Note that the empty <span>s are just for separating the non-ASCII text from the
ASCII text. Any other markup would do.

The &rsquo;, &ldquo; etc. are just samples of non-ASCII characters. The actual
UTF characters would have worked as well.

The third paragraph is just for reference - to show that the metrics used for
the first part of the text in line 2 are *not* those of "Lucida Grande" (as you
might have expected).

Screenshot will follow.
Attached image Screenshot
Configuration used in this screenshot:

Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b2) Gecko/20050514
Firefox/1.0+

Locale: en-US
Default fonts for Western: Times / Helvetica
Default fonts for Hebrew: Lucida Grande / Lucida Grande
*** Bug 273003 has been marked as a duplicate of this bug. ***
Attached file testcase #2
In this testcase, an actual Hebrew character is added somewhere in the
document. This causes the following differences from the previous testcase:
1. ASCII-only text now also appears using the wrong font.
2. The spacing problem for ASCII text (but not for non-ASCII text) now does
look as if the metrics of the correct (Hebrew default) font (Lucida Grande) are
being used.

The third line starting with "Please" is again just for reference. Screenshot
will follow.
Attached image screenshot #2
Changing summary to reflect testcase #2 as well.
Keywords: testcase
Summary: [Mac] Wrong default font used for non-ASCII text when non-default language specified → [Mac] Wrong default font sometimes used when non-default language specified
This appears to be fixed in Cairo/Cocoa builds.
Depends on: 323934
Flags: blocking1.9?
Fixed by Cairo (bug 323934).
Status: NEW → RESOLVED
Closed: 18 years ago
Flags: blocking1.9?
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: