Closed
Bug 62756
Opened 24 years ago
Closed 24 years ago
Text of displayed HTML messages very small
Categories
(MailNews Core :: MIME, defect, P3)
MailNews Core
MIME
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla0.9.3
People
(Reporter: mikepinkerton, Assigned: nhottanscp)
References
Details
(Whiteboard: [nsbeta1+])
Attachments
(5 files)
111.63 KB,
image/jpeg
|
Details | |
4.64 KB,
text/html
|
Details | |
808 bytes,
patch
|
Details | Diff | Splinter Review | |
748 bytes,
patch
|
Details | Diff | Splinter Review | |
889 bytes,
patch
|
Details | Diff | Splinter Review |
Since I upgraded from the NS6 release bits, i've noticed that the text in
messages is so small, it's almost unreadable.
I'll attach a screenshot. This makes it really hard to use.
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
note that my fonts are set at 12pt (default is higher), but webpages are all
still readable. It's only email.
Comment 3•24 years ago
|
||
I'm not seeing this with my mac build 030608. If I set font to 12 webpages
become pretty difficult to read but mail looks fine. Mike, are you still seeing
this?
Reporter | ||
Comment 4•24 years ago
|
||
plaintext messages are ok, it's people that send html mail.
Reporter | ||
Comment 5•24 years ago
|
||
Reporter | ||
Comment 6•24 years ago
|
||
and yes, this does happen with my 3/9/01 build
Reporter | ||
Comment 7•24 years ago
|
||
now that mail is usable, I'd love to see this fixed since it makes my eyes bleed
to read the tiny text.
Hey Seth, if you fix it in moz0.9 i'll buy you a 6pack of whatever you want.
Updated•24 years ago
|
Comment 8•24 years ago
|
||
marking nsbeta1+ and moving to mozilla0.9.1
Comment 10•24 years ago
|
||
Moving to 0.9.2. My understanding is that the default font prefs work ok.
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Comment 12•24 years ago
|
||
Seth and I looked at this for some time today. Here's the deal:
On message display, the MIME code wraps the message in a
<div class="moz-text-html" style="font-family: Times; font-size: 100%">
(message body here)
</div>
where the font-family, and the font-size are deduced from your preferences. This
was work done for bug 38890 and bug 40547; see
http://lxr.mozilla.org/mozilla/source/mailnews/mime/src/mimethtm.cpp#67
The problem here is that Pinkerton and I have set our font prefs to use 12px as
the fize for our variable-width font. The code in GetMailNewsFont() compares the
font sizes in the user prefs and default prefs (12px and 16px respectively) to
determine the font-size percentage, which thus comes out as 75%. So the message
is displayed at 75% font size.
It's not clear why this <div> needs font-size style on it at all. Removing the
font-size attribute seems to work, but may break i18n stuff that nhotta was
trying to fix in the first place.
nhotta: please take a look at this bug.
Assignee: sspitzer → nhotta
Component: Mail Window Front End → MIME
QA Contact: pmock
Assignee | ||
Comment 13•24 years ago
|
||
This was done to allow the user to change the mail font size by the font
preference, so it's not i18n.
Removing the size attribute would disable the ability to change message view
font size. I think some people may need larger font size.
Reassign to putterman for evaluation, can we disable the size attribute for
mail?
Assignee: nhotta → putterman
Comment 14•24 years ago
|
||
This should probably go to ducarroz, owner of the MIME module.
Comment 15•24 years ago
|
||
> This was done to allow the user to change the mail font size by the font
But don't the contents of the <div> render using the users preferred font
settings already?
Assignee | ||
Comment 16•24 years ago
|
||
Yes, but it uses the font size of unicode because libmime sends UTF-8 data to
layout. So, I have to correct my last comment. After removing the font size
attibute, there is a way to change message font size by changing unicode font
size.
Assignee | ||
Comment 17•24 years ago
|
||
If samll size is the problem then I can prevent generating less than 100% sizes.
Comment 18•24 years ago
|
||
reassigning to ducarroz until we decide if mailnews isn't the right owner.
Assignee: putterman → ducarroz
Comment 19•24 years ago
|
||
So what you're saying is that the font scaling gets applied twice?
Assignee | ||
Comment 20•24 years ago
|
||
I don't think it's applied twice. If font size is not specified, it is taken
from the pref based on the charset of the document.
Comment 21•24 years ago
|
||
These <div>s that we insert into displayed messages are also problematic in
general. The get included in copy/pasted text, which means that doing a Select
All/Copy/Paste of the contents of a message gives you some content that was not
in the original message. And doing this repeatedly, as I have seen people do in
standard format emails, causes this <div> to appear multiple times.
Can we move this font-related CSS into the XUL?
Assignee | ||
Comment 22•24 years ago
|
||
I am not sure about moving the CSS into XUL, if that possible or not.
But can the size issue be resolved by moving to XUL?
Comment 23•24 years ago
|
||
Yes, we are currently inserting our own (mailnews) css file in each message display.
Assignee | ||
Comment 24•24 years ago
|
||
Assignee | ||
Comment 25•24 years ago
|
||
With the patch, libmime always generates font size 100% or larger. But HTML
messages are still displayed smaller when the font is set to smaller size by
pref UI. It seems like somewhere else setting the font size.
It could be related to bug 90474, cc to attinasi@netscape.com.
Summary: Text of displayed messages very small → Text of displayed HTML messages very small
Assignee | ||
Comment 26•24 years ago
|
||
The problem is that unicode font size is affected by font size setting of Western.
This can be reproduced by browser by using charset menu to change the charset to
UTF-8 for HTML pages.
Because of this problem, the message display (charset is UTF-8) is scaled by
Western font size. But the scaling is already done by libmime, therefore we get
the double-scaled problem.
So the problem is probably related to font/layout, reassign to nhotta for now.
Assignee: ducarroz → nhotta
Assignee | ||
Comment 27•24 years ago
|
||
There is a code in layout (which calls i18n) to use font of the default locale
in case the document is unicode (e.g. UTF-8). That was done in order to make XUL
(charset is UTF-8) to use the default locale instead of using the unicode font.
This creates the side effect. In browser, locale font size (Western in case of
US system) is used for Unicode pages. In mail, it causes the double scaling
problem because libmime specifies font size and the font is scaled again because
the mail output is UTF-8.
Status: NEW → ASSIGNED
Assignee | ||
Comment 28•24 years ago
|
||
Assignee | ||
Comment 29•24 years ago
|
||
I filed a separate bug about the unicode font as bug 91190.
The current behavior was done by intention and currently I do not have a solution.
For mail/news, I put a patch of disabling the scaling in libmime. This disables
the support of per language based scaling. And mail font size is controlled by
the default locale font setting (e.g. Western for US system). I think this is
fine for most people.
Comment 30•24 years ago
|
||
R=ducarroz
Comment 31•24 years ago
|
||
if we are going to do that, why not remove the "font-size: %d%" part completely?
and something that sfraser and I noticed, why isn't it:
"font-size: %d%%"
both ways seem to work, but isn't "%%" correct?
Assignee | ||
Comment 32•24 years ago
|
||
Comment 33•24 years ago
|
||
looking at the other callers of GetMailNewsFont(), the one in mimethtm.cpp was
the only one using fontSizePercentage (last arg to GetMailNewsFolder())
if that isn't going to be used anymore, we should clean up GetMailNewsFolder()
and the callers, right?
see http://lxr.mozilla.org/mozilla/search?string=fontSizePercentage
Assignee | ||
Comment 34•24 years ago
|
||
I think we want to keep the argument in case for the unicode font problem is
fixed (bug 91190).
Comment 35•24 years ago
|
||
ok, good to know.
if we plan on using it for something later we should obviously keep it in.
sr=sspitzer on the last patch.
thanks for fixing this nhotta. pinkerton, sfraser and other mac users are
going to be very pleased.
Comment 36•24 years ago
|
||
This is a severe problem also under Linux. Is it now fixed for Mac only??
Assignee | ||
Comment 37•24 years ago
|
||
Checked in to trunk.
The change is not for Macintosh specific.
OS: Mac System 9.x → All
Hardware: Macintosh → All
Assignee | ||
Comment 38•24 years ago
|
||
Fixed in trunk.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 39•24 years ago
|
||
A sight for sore eyes!
Updated•20 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•