Open Bug 458972 Opened 17 years ago Updated 3 years ago

Words are sometimes rendered for the wrong language

Categories

(Core :: Graphics, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: karlt, Unassigned)

References

Details

Attachments

(2 files)

Attached file testcase
STR: Edit intl/locale/src/langGroups.properties: -mk=x-cyrillic +mk=mk View attachment: Expected results: lang=en: render according to LANGUAGE environment variable and locale, defaulting to same as ru. lang=ru: render with normal glyphs lang=mk: render with Macedonian glyphs Actual results: Words that have already been rendered with one language are rendered the same way with other languages. The unique words render as expected.
I suspect that this is due to the gfxTextRunWordCache keying words with the font, but, on Linux the font does not depend on the language (only the use of the font does). Possible solutions: 1) include the language in the word cache key 2) create a different font for each language
Blocks: 24139
I can't confirm the problem you are describing, the single letters in lank=mk display correctly the same as in the unique string. Mozilla/5.0 (X11; U; Linux i686; mk; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3 (this is a Mozilla build) GTK 2.14.3 Glib 2.18.1 Pango 1.22.0 Cairo 1.8 (but Fx doesn't use the system Cairo isn't it)
Attached image how it looks for me
(In reply to comment #2) > I can't confirm the problem you are describing, the single letters in lank=mk > display correctly the same as in the unique string. > > Mozilla/5.0 (X11; U; Linux i686; mk; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3 I suspect the issue only shows up in builds after bug 404857 was fixed. That would include Firefox 3.1 Beta 1.
This bug still exists even though we no longer have a gfxTextRunWordCache.
Assignee: karlt → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: