Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Issue 66723009: Fixes 1 pixel shift of text rendering on CrOS and Linux. (Closed)

Created:
7 years, 1 month ago by Yuki
Modified:
7 years, 1 month ago
Reviewers:
msw, asvitkine_google
CC:
chromium-reviews
Visibility:
Public.

Description

Fixes 1 pixel shift of text rendering on CrOS and Linux. For those platform which don't support cap height, we should center the entire font height instead of the cap height. This CL applies the same fix as http://crrev.com/59873002 . BUG=314688 TBR=asvitkine,msw TEST=Test manually. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234137

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M ui/gfx/render_text.cc View 1 chunk +7 lines, -2 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yukishiino@chromium.org/66723009/1
7 years, 1 month ago (2013-11-09 08:43:27 UTC) #1
Yuki
Could you review this CL? Sine the issue 314688 is beta blocking, and the change ...
7 years, 1 month ago (2013-11-09 08:44:45 UTC) #2
commit-bot: I haz the power
Change committed as 234137
7 years, 1 month ago (2013-11-09 19:22:14 UTC) #3
msw
LGTM, but please consider my comment/question. https://codereview.chromium.org/66723009/diff/1/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/66723009/diff/1/ui/gfx/render_text.cc#newcode65 ui/gfx/render_text.cc:65: // Some platforms ...
7 years, 1 month ago (2013-11-11 18:07:26 UTC) #4
Peter Kasting
I've been kinda uncomfortable with this issue as well. If possible, I think callers should ...
7 years, 1 month ago (2013-11-12 02:00:23 UTC) #5
Yuki
On 2013/11/12 02:00:23, Peter Kasting wrote: > I've been kinda uncomfortable with this issue as ...
7 years, 1 month ago (2013-11-12 09:49:21 UTC) #6
msw
On 2013/11/12 09:49:21, Yuki wrote: > I think we can get the cap height by ...
7 years, 1 month ago (2013-11-12 17:58:56 UTC) #7
Peter Kasting
On 2013/11/12 09:49:21, Yuki wrote: > I think we can get the cap height by ...
7 years, 1 month ago (2013-11-12 19:57:08 UTC) #8
Yuki
7 years, 1 month ago (2013-11-13 02:12:39 UTC) #9
Message was sent while issue was closed.
On 2013/11/12 19:57:08, Peter Kasting wrote:
> On 2013/11/12 09:49:21, Yuki wrote:
> > I think we can get the cap height by actually layouting "ABC...XYZ" and
> getting
> > its height.  This layouting will be done once per font per size.  So we can
> > accept this cost.
> 
> No.  Don't do it this way.  There are correct ways to do this that actually
read
> the true metrics out of the font and return you the same values Windows
> calculates, and as a bonus are faster than this method.  Go read the bugs
about
> this.  If you still don't understand what I'm asking for, ping me.

Okay, let me try to retrieve the font metrics from fonts.  If you have any
clues, please let me know.  When I tried this before, I didn't find an API in
Pango.

Powered by Google App Engine
This is Rietveld 408576698