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

Issue 1860993004: Test CTFonts for equality, not just name and style. (Closed)

Created:
4 years, 8 months ago by bungeman-skia
Modified:
4 years, 8 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Test CTFonts for equality, not just name and style. The current code looks up CTFonts from descriptors by just name and style. This is not sufficient, for example Avenir Book and Avenir Roman have the same family name but the same basic style, but are obviously not the same. BUG=skia:5162 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1860993004 Committed: https://skia.googlesource.com/skia/+/53d5c6e7448fb68766a05f7bee651aa25e5d7f2b

Patch Set 1 #

Patch Set 2 : Fix adding to cache. #

Total comments: 1

Patch Set 3 : Remove the rest of the name/style only matching. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -70 lines) Patch
M src/ports/SkFontHost_mac.cpp View 1 2 14 chunks +33 lines, -70 lines 1 comment Download

Messages

Total messages: 11 (4 generated)
bungeman-skia
4 years, 8 months ago (2016-04-05 20:49:19 UTC) #3
bungeman-skia
https://codereview.chromium.org/1860993004/diff/20001/src/ports/SkFontHost_mac.cpp File src/ports/SkFontHost_mac.cpp (right): https://codereview.chromium.org/1860993004/diff/20001/src/ports/SkFontHost_mac.cpp#newcode2608 src/ports/SkFontHost_mac.cpp:2608: SkTypeface* face = SkTypefaceCache::FindByProcAndRef(find_by_NameStyle, &cacheRequest); Leaving this find_by_NameStyle here ...
4 years, 8 months ago (2016-04-05 22:03:26 UTC) #4
bungeman-skia
I ran this past blink layout tests with https://codereview.chromium.org/1866773002/ and I don't think it changes ...
4 years, 8 months ago (2016-04-06 20:22:57 UTC) #5
bungeman-skia
I have now run this on the Chromium trybots and this doesn't affect layout tests ...
4 years, 8 months ago (2016-04-07 22:52:11 UTC) #6
mtklein
lgtm, i think. is there any hope of ever being able to write unit tests ...
4 years, 8 months ago (2016-04-08 00:59:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1860993004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1860993004/40001
4 years, 8 months ago (2016-04-08 14:01:14 UTC) #9
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 14:22:32 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/53d5c6e7448fb68766a05f7bee651aa25e5d7f2b

Powered by Google App Engine
This is Rietveld 408576698