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

Issue 307243002: Fix font family based fallback font selection (Closed)

Created:
6 years, 6 months ago by Dominik Röttsches
Modified:
6 years, 6 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix font family based fallback font selection Introducing FontFaceCreationParams, used for creating a platform font face in the old way based on family, and in the fixed way, based on ttf filename and collection index. Created a font based on Gardiner hieroglyphs font, same family name, but two font files, one containing a bug glyph, one containing a cat glyph. When the fonts are installed on the system, content_shell should show both when opening the family-fallback-gardiner.html test case. This works on Firefox, but on Chromium content_shell we used to only see the bug symbol. BUG=285303 R=eseidel,behdad,eae Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176765

Patch Set 1 #

Patch Set 2 : TTC file added, combining both ttfs #

Patch Set 3 : WiP, initial fix, feedback requested #

Patch Set 4 : Win, Mac build fix attempts, coding style fixes #

Patch Set 5 : Fixing empty AtomicString hashing issue. #

Patch Set 6 : Disabling LayoutTest for now #

Patch Set 7 : Rebased on top of WebFontFamily/WebFallbackFont rename #

Patch Set 8 : Rebased #

Patch Set 9 : .gypi fix. #

Patch Set 10 : Using CreateFromStream + SkFontConfigInterface, FontCacheSkiaWin simplified #

Patch Set 11 : Renamed fciId to fontconfigInterfaceId #

Patch Set 12 : Windows build fix #

Patch Set 13 : Android build fix. #

Patch Set 14 : Windows build fix. #

Patch Set 15 : Windows link fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -58 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/fonts/family-fallback-gardiner.html View 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/third_party/GardinerMod/GardinerModBug.ttf View Binary file 0 comments Download
A LayoutTests/third_party/GardinerMod/GardinerModBugCat.ttc View 1 Binary file 0 comments Download
A LayoutTests/third_party/GardinerMod/GardinerModCat.ttf View Binary file 0 comments Download
A LayoutTests/third_party/GardinerMod/LICENSE.txt View 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/third_party/GardinerMod/README.Chromium View 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/css/CSSFontFaceSource.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/CSSSegmentedFontFace.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/fonts/FontCache.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +6 lines, -3 lines 0 comments Download
M Source/platform/fonts/FontCache.cpp View 1 2 3 4 5 6 7 4 chunks +11 lines, -19 lines 0 comments Download
M Source/platform/fonts/FontCacheKey.h View 1 2 5 chunks +7 lines, -6 lines 0 comments Download
M Source/platform/fonts/FontDescription.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/fonts/FontDescription.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
A Source/platform/fonts/FontFaceCreationParams.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +112 lines, -0 lines 0 comments Download
M Source/platform/fonts/android/FontCacheAndroid.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M Source/platform/fonts/linux/FontCacheLinux.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M Source/platform/fonts/mac/FontCacheMac.mm View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M Source/platform/fonts/skia/FontCacheSkia.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +38 lines, -11 lines 0 comments Download
M Source/platform/fonts/win/FontCacheSkiaWin.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +11 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
behdad_google
lgtm Excellent test case!
6 years, 6 months ago (2014-06-02 20:02:09 UTC) #1
Dominik Röttsches
This needs a bit more work, still some assertion failures in the old code, however ...
6 years, 6 months ago (2014-06-05 14:25:37 UTC) #2
eae
Seems entirely reasonable to me. Not thrilled about the name FontFaceCreationParams but can't come up ...
6 years, 6 months ago (2014-06-05 16:38:12 UTC) #3
behdad_google
lgtm Nice. Thanks.
6 years, 6 months ago (2014-06-05 18:54:24 UTC) #4
Dominik Röttsches
The patch is more or less ready, but there a couple of caveats: a) void ...
6 years, 6 months ago (2014-06-06 14:55:42 UTC) #5
eae
On 2014/06/06 14:55:42, Dominik Röttsches wrote: > The patch is more or less ready, but ...
6 years, 6 months ago (2014-06-06 15:11:22 UTC) #6
Dominik Röttsches
On 2014/06/06 15:11:22, eae wrote: > On 2014/06/06 14:55:42, Dominik Röttsches wrote: > > The ...
6 years, 6 months ago (2014-06-17 12:58:48 UTC) #7
eae
LGTM
6 years, 6 months ago (2014-06-17 14:56:25 UTC) #8
Dominik Röttsches
.gypi fix.
6 years, 6 months ago (2014-06-17 19:08:26 UTC) #9
Dominik Röttsches
1) Ugh, the bots and I were hitting the walls of the sandbox. :-( SkTypeface::CreateFromFile ...
6 years, 6 months ago (2014-06-18 13:41:34 UTC) #10
Dominik Röttsches
Windows link fix.
6 years, 6 months ago (2014-06-23 13:01:11 UTC) #11
Dominik Röttsches
The CQ bit was checked by dominik.rottsches@intel.com
6 years, 6 months ago (2014-06-23 14:42:17 UTC) #12
Dominik Röttsches
The CQ bit was unchecked by dominik.rottsches@intel.com
6 years, 6 months ago (2014-06-23 14:42:46 UTC) #13
Dominik Röttsches
Emil, I am optimistic this can land now. Would you have a moment to take ...
6 years, 6 months ago (2014-06-23 14:45:56 UTC) #14
eae
LGTM, Thanks for doing this Dominik!
6 years, 6 months ago (2014-06-23 15:07:01 UTC) #15
Dominik Röttsches
The CQ bit was checked by dominik.rottsches@intel.com
6 years, 6 months ago (2014-06-23 16:21:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominik.rottsches@intel.com/307243002/330001
6 years, 6 months ago (2014-06-23 16:22:30 UTC) #17
commit-bot: I haz the power
6 years, 6 months ago (2014-06-23 17:23:59 UTC) #18
Message was sent while issue was closed.
Change committed as 176765

Powered by Google App Engine
This is Rietveld 408576698