Closed Bug 82815 Opened 23 years ago Closed 22 years ago

Need font download dialog for Mail

Categories

(MailNews Core :: Internationalization, defect)

x86
Windows 98
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: ji, Assigned: nhottanscp)

References

Details

(Keywords: intl)

This bug is seperated from bug 82786.

Font download dialog has been implemented for browser, we need this for Mail as 
well. Besically when the user has a mail in his/her mailbox which needs extra 
fonts to view the mail, the font download dialog should be poped up. 

We might need to consider the following things:
1. When does the user should get this dialog? 
   At the moment when the subject is shown on the thread pane or when the user 
actually select the mail to view it.
2. If we pop up the dialog as soon as the thread pane shows the subject, if the 
mailbox contains the mails which use different languages, should we pop up the 
dialog several times to be able to show all the subjects correctly?
3. For the mails w/o MIME header, should we use folder charset to decide if we 
need to pop up the dialog?
Mail uses the same layout engine to display. Roy, why it's not working for mail?
Is there a browser specific code to hook up the download dialog?
Keywords: intl
Here is a comment from 82786:
===========================================================
The display mLanguage in nsTextFrame is
"x-western" despite the fact that the MIME content type is "euc-kr".
===========================================================
The above occured while reading a Korean email.

>Is there a browser specific code to hook up the download dialog?
No.  The Font download dlg is generic.  dlgbox will be displayed
once the nsIFontPackageService calls ::NeedFontPackage().
The font detection code (nsIFontPackageService) is also generic.

Hope this helps.



Marking as nsbeta1 and requesting for M0.9.2.
Keywords: nsbeta1
In order to detect which font to download, language information is needed.
It looks like the language information is usually derived from charset.
But in case of UTF-8, language seems to be set mapped to "x-western".
This is a generic problem of documents with Unicode charsets but most noticeable
for mail since it always sends text to layout as UTF-8.
Language information may be specified by using "LANG" attribute in libmime.
But we can not always get a correct language. Mozilla internal name like 
"x-western" should not be sent to the layout. So need some kind of mechanism to 
distinguish non internal language names.
Other possibility is to duplicate the font checking code from gfx to libmime.
Either case the change is non trivial.

I don't know if font download in mail is useful. Unlike web pages which the user 
goes to the pages, mails are sent to the user. Some mails are not desired like 
spam mail. It would be annoying to see the font download dialog for the mails 
you don't really want to read.

Naoki, is it possible to use the charset info in MIME header?
Yes, that I mentioned about language which actually is derived from MIME charset.
mark as moz0.9.3
Target Milestone: --- → mozilla0.9.3
future
Target Milestone: mozilla0.9.3 → Future
Status: NEW → ASSIGNED
Keywords: nsBranch
==== cc'ing jbetak@netscape.com ====
Blocks: 99171
marking nsbranch- as per Frank's comment
Keywords: nsbranchnsbranch-
Blocks: 104166
Keywords: nsbeta1
Blocks: 107067
Keywords: nsbranch-
WFM, probably enabled by the change of attaching a lang attribute for message view.

see bug 128368
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Naoki, i am reopening this bug : in 08-25-1.0 build on Win2K and Win98 when i
have a clean system without CJK fonts installed and the cjk mail is open there
is no dlgbox requesting the font download, i see one if go to Browser (for ex.
follwing the link in mail). Nominating
Status: RESOLVED → REOPENED
Keywords: nsbeta1
Resolution: WORKSFORME → ---
This was enabled once but many people disliked that, so it turned off.
We do not plan to turn it on again for mail.
Status: REOPENED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → WONTFIX
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.