Last Comment Bug 18436 - In quoting under Plain Text option, Japanese period is placed too high
: In quoting under Plain Text option, Japanese period is placed too high
Product: MailNews Core
Classification: Components
Component: Composition (show other bugs)
: Trunk
: x86 Windows NT
: P3 major (vote)
: M16
Assigned To: Erik van der Poel
: Katsuhiko Momoi
Depends on:
  Show dependency treegraph
Reported: 1999-11-10 01:40 PST by Katsuhiko Momoi
Modified: 2008-07-31 01:22 PDT (History)
6 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---

HTML file with 2 contrasting images (868 bytes, text/html)
1999-11-10 01:41 PST, Katsuhiko Momoi
no flags Details
An image of the JPN period quoted too high (40.29 KB, image/jpeg)
1999-11-10 01:44 PST, Katsuhiko Momoi
no flags Details
the JPN period apperas at the normal base line position in new Plain Text composer window (35.89 KB, image/jpeg)
1999-11-10 01:48 PST, Katsuhiko Momoi
no flags Details

Description Katsuhiko Momoi 1999-11-10 01:40:05 PST
** Observed with 11/9/99 Win32 build (1999110911) **

The Japanese period is input via the period key on the US keyboard
when the JPN IME is on.
Here's the problem.

1. Choose a mail msg which already has a Japanese period in
   the text body. For example, the 2nd msg in the Smoketest file.
2. Select this msg and engage "Reply" button under Plain Text mail
   send option.
3. Note the positioning of the JPN period in the quoted text body.
   It is placed as high as the top of the other characters.
4.Note that in the subject header, the period is placed correctly slightly
  above the base line.
5. Interestingly, when you insert the cursor into the text body and
   input the JPN period, it is placed at the high position as well.

So somehow, the JPN period is positioned incorrectly in the
quoted Plain text mail composer.

Interestingly, if you start a new Plain Text compose window and
input the Japanese period, it is placed correctly at the base line.

See an illustration of this problem (via 2 contrasting images) at the
above URL.
Comment 1 Katsuhiko Momoi 1999-11-10 01:41:59 PST
Created attachment 2751 [details]
HTML file with 2 contrasting images
Comment 2 Katsuhiko Momoi 1999-11-10 01:44:59 PST
Created attachment 2752 [details]
An image of the JPN period quoted too high
Comment 3 Katsuhiko Momoi 1999-11-10 01:46:59 PST
The 1st HTML failed to upload the accompanying images.
So, I'm uplaoding images directly.

1st image -- the JPN period is placed too high in the quoted
             Plain Text mail.
2nd image -- the JPn period apperas at the normal base line position
             when a new Plain Text mail composer is used.
Comment 4 Katsuhiko Momoi 1999-11-10 01:48:59 PST
Created attachment 2753 [details]
the JPN period apperas at the normal base line position in new Plain Text composer window
Comment 5 Jean-Francois Ducarroz 1999-11-10 16:15:59 PST
should a Ender widget display matter. Reassign to Ender folk
Comment 6 rubydoo123 1999-11-11 15:41:59 PST
this maybe a dup of 17503
Comment 7 Katsuhiko Momoi 1999-11-11 15:45:59 PST
Bug 17503 refers to centering of normal text material in certain widgets.
This bug applies only when a body text is quoted as part of Reply
operation and under Plain Text mail send option only. There is something
else going on within quoted text.
For normal new mail compose, this problem does not exist.
Comment 8 rubydoo123 1999-11-16 08:41:59 PST
asking ftang to take a quick look and see if he can narrow down the issue. Frank
-- please reassign to me after you review and comment -- thanks
Comment 9 Frank Tang 1999-11-17 12:05:59 PST
erik- I think this is a GFX problem w/ a particular font face size combination.
I take a look at it in Momoi's cube. I cannot find out what Japanese font it
used to render the text.
Comment 10 nhottanscp 1999-11-17 12:32:59 PST
I saw the same kind of problem before. In that case, vertical font was used
(Japanese period in vertical font is placed at upper right instead of lower left
of the normal horizontal font).
Comment 11 bobj 1999-11-17 18:13:59 PST
Is it easy to confirm Naoki's theory?
Will the font pref work might fix this, if we default to a non-vertical
font for Japanese?  But why would only the period be from picked from the
vertical font and not the other Japanese characters?
Comment 12 nhottanscp 1999-11-17 19:09:59 PST
It's not really a theory, it's just a info that I saw the same problem in the
same code base before. That time, it happened in everywhere.
It may be checked by trying other characters which have different glyphs in
vertical (such as Japanese comma, parenthesis).
Comment 13 Erik van der Poel 1999-11-18 08:13:59 PST
Yes, please try comma and other chars that look different in vertical fonts.
I disabled vertical fonts by ignoring all font names that start with '@' in the
global font enumerator (which is used when the algorithm reaches the end of the
font-family list without finding a match).
Comment 14 Erik van der Poel 2000-01-24 16:31:11 PST
Moving all of my M15s to M16. Please add comments if you disagree.
Comment 15 Erik van der Poel 2000-03-09 22:36:29 PST
Does this problem still occur? Leaving target at M16.
Comment 16 Katsuhiko Momoi 2000-03-09 23:13:30 PST
I don't think this happens any more under Windows. 
I looked at similar test cases to the original ones
which prompted me to file this bug. The additional condition
was to 1) Leave Unicode font setting at defaults on a new profile.

On quoted data under Japanese plain text mail, periods and
commas are displaying normally. 
I'm going to mark this "Worksforme" for Windows. There is
another bug filed for Linux and that is still a problem
without specific font settings.
Comment 17 Katsuhiko Momoi 2000-03-09 23:17:25 PST
Verified as Worksforme.

Note You need to log in before you can comment on or make changes to this bug.