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

Issue 26702008: Allow small-caps synthesis for @font-face with multiple sources including SVG format (Closed)

Created:
7 years, 2 months ago by Kunihiko Sakamoto
Modified:
7 years, 2 months ago
Reviewers:
eae, dglazkov, eseidel
CC:
blink-reviews, dglazkov+blink, apavlov+blink_chromium.org, darktears
Visibility:
Public.

Description

Allow small-caps synthesis for @font-face with multiple sources including SVG format Since small-caps synthesis is not supported for SVG fonts, our font matching algorithm ignored @font-faces that have svg sources when small-caps variant is requested. This behavior had a problem that it discards @font-face even if non-svg (ex. woff) source is available. This patch moves that SVG-font check to CSSSegmentedFontFace::getFontData() so that it skips SVG fonts only when SVG source is used. BUG=298970 TEST=fast/css,svg/* Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159429

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -39 lines) Patch
A LayoutTests/fast/css/font-face-small-caps-with-svg-source.html View 1 chunk +19 lines, -0 lines 0 comments Download
A + LayoutTests/fast/css/font-face-small-caps-with-svg-source-expected.html View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/css/CSSFontFace.h View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/css/CSSFontFace.cpp View 1 chunk +0 lines, -12 lines 0 comments Download
M Source/core/css/CSSSegmentedFontFace.h View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/css/CSSSegmentedFontFace.cpp View 2 chunks +6 lines, -10 lines 0 comments Download
M Source/core/css/CSSSegmentedFontFaceCache.cpp View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Kunihiko Sakamoto
7 years, 2 months ago (2013-10-10 09:11:57 UTC) #1
eseidel
Lgtm On Oct 10, 2013 2:11 AM, <ksakamoto@chromium.org> wrote: > Reviewers: Dimitri Glazkov, eae, eseidel, ...
7 years, 2 months ago (2013-10-10 14:41:57 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ksakamoto@chromium.org/26702008/4001
7 years, 2 months ago (2013-10-11 05:03:59 UTC) #3
commit-bot: I haz the power
7 years, 2 months ago (2013-10-11 07:11:18 UTC) #4
Message was sent while issue was closed.
Change committed as 159429

Powered by Google App Engine
This is Rietveld 408576698