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

Issue 1019743004: Remove duplicate fonts from the font fallback list. (Closed)

Created:
5 years, 9 months ago by ananta
Modified:
5 years, 9 months ago
Reviewers:
msw, Peter Kasting
CC:
chromium-reviews, derat+watch_chromium.org, ckocagil
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove duplicate fonts from the font fallback list. We use std::unique to remove duplicate entries from the fallback list. BUG=467459 Committed: https://crrev.com/83de07b1894c61e53469c830c9f7c8986d9ae42c Cr-Commit-Position: refs/heads/master@{#321497}

Patch Set 1 #

Patch Set 2 : Added comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M ui/gfx/render_text_harfbuzz.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
ananta
5 years, 9 months ago (2015-03-19 23:53:41 UTC) #2
msw
lgtm
5 years, 9 months ago (2015-03-20 00:18:05 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1019743004/20001
5 years, 9 months ago (2015-03-20 00:24:54 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-20 02:15:56 UTC) #6
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/83de07b1894c61e53469c830c9f7c8986d9ae42c Cr-Commit-Position: refs/heads/master@{#321497}
5 years, 9 months ago (2015-03-20 02:17:09 UTC) #7
Peter Kasting
I'm quite concerned with the list ordering change this produces. It seems like that's going ...
5 years, 9 months ago (2015-03-20 07:15:01 UTC) #9
ananta
On 2015/03/20 07:15:01, Peter Kasting wrote: > I'm quite concerned with the list ordering change ...
5 years, 9 months ago (2015-03-20 07:28:19 UTC) #10
Peter Kasting
On 2015/03/20 07:28:19, ananta wrote: > On 2015/03/20 07:15:01, Peter Kasting wrote: > > I'm ...
5 years, 9 months ago (2015-03-20 07:30:54 UTC) #11
msw
5 years, 9 months ago (2015-03-20 16:33:14 UTC) #12
Message was sent while issue was closed.
On 2015/03/20 07:30:54, Peter Kasting wrote:
> On 2015/03/20 07:28:19, ananta wrote:
> > On 2015/03/20 07:15:01, Peter Kasting wrote:
> > > I'm quite concerned with the list ordering change this produces.  It seems
> > like
> > > that's going to cause visible problems.  Did you evaluate how bad this is
> and
> > > have good reason to conclude it was not an issue before moving forward
with
> > this
> > > change?
> > > 
> > > If not, I think the change is potentially worse than what went before.
> > 
> > The fallback font list is based on the base font followed by its linked
fonts.
> > The ShapeRun function returns early if it finds a font which yields zero
> > unmatched glyphs. If not it runs through the whole list and finds the font
> which
> > yields the least number of mismatches.
> > 
> > So we should be ok in most cases.
> 
> That's relieving, but in that case, how could the order matter at all (as the
> comment suggests it might)?  It sounds like the behavior should be identical
no
> matter the order?  (Or is the difference tiebreaking?)

Yes, the difference would be in tie-breaking or an early return on a different
font that also yields no missing glyphs.

Powered by Google App Engine
This is Rietveld 408576698