Closed Bug 353185 Opened 17 years ago Closed 17 years ago

The line-height of the location bar is wrong with Japanese font

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(3 files, 2 obsolete files)

See following screenshot.
Attached image screenshot#1
See the location bar. The descent is cut.(You cannot see 'g').
Attached patch Patch rv1.0 (obsolete) — Splinter Review
The Japanese font returns 0 for internal leading. But the actual line-height is not equal to emHeight (== size). Therefore, we should calculate the actual internal leading like gfxPangoFont.
Attachment #239052 - Flags: review?(vladimir)
Status: NEW → ASSIGNED
Comment on attachment 239052 [details] [diff] [review]
Patch rv1.0

I found another approach. I'll create new patch.
Attachment #239052 - Flags: review?(vladimir) → review-
Attached patch Patch rv2.0 (obsolete) — Splinter Review
We should use this patch.

The XP code checking whether the leading is zero for calculating the actual value of 'line-height: normal;' in nsHTMLReflowState.
And we should use new font leading API if thebes is enabled for this issue.
Attachment #239052 - Attachment is obsolete: true
Attachment #239072 - Flags: review?(vladimir)
This is a screenshot of the patched build.
The location bar draws the URI clearly. And the summaries of the bugs in bugzilla-jp are rendered good.(The line-height is normal and the result is similar to old gfx and Safari.)
Summary: The line-height is wrong with Japanese font → The line-height of the location bar is wrong with Japanese font
Comment on attachment 239072 [details] [diff] [review]
Patch rv2.0

Ah!  That explains the location bar issues, especially on mac.
Attachment #239072 - Flags: review?(vladimir) → review+
checked-in. thanks.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
backed-out the patch that is cause of bustage on Linux.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → ASSIGNED
Vlad:

If the Linux uses the gfx/src/ps, we fail to build on Linux. But should we use the Legacy gfx code on cairo-gtk2 build?
Attached patch Patch rv3.0Splinter Review
I'm adding a quirks API in the nsFontMetricsPS.
Attachment #239072 - Attachment is obsolete: true
Attachment #241689 - Flags: review?(vladimir)
I want to add the new APIs on Linux. Because we have Bug 218032. I think that we need the new APIs for calculating the suitable line-height. See this code: http://lxr.mozilla.org/mozilla/source/layout/generic/nsHTMLReflowState.cpp#2220
This code is only used |#ifdef FONT_LEADING_APIS_V2|.
checked-in, thank you, vlad.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Blocks: 218032
You need to log in before you can comment on or make changes to this bug.