Changeset 268638 in webkit
- Timestamp:
- Oct 17, 2020 12:06:23 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r268634 r268638 1 2020-10-17 Myles C. Maxfield <mmaxfield@apple.com> 2 3 REGRESSION(r268561): Synthetic oblique text is drawn upside-down 4 https://bugs.webkit.org/show_bug.cgi?id=217867 5 <rdar://problem/70400846> 6 7 Reviewed by Darin Adler. 8 9 * fast/text/synthetic-oblique-expected.html: Added. 10 * fast/text/synthetic-oblique.html: Added. 11 1 12 2020-10-16 Devin Rousso <drousso@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r268637 r268638 1 2020-10-17 Myles C. Maxfield <mmaxfield@apple.com> 2 3 REGRESSION(r268561): Synthetic oblique text is drawn upside-down 4 https://bugs.webkit.org/show_bug.cgi?id=217867 5 <rdar://problem/70400846> 6 7 Reviewed by Darin Adler. 8 9 I made a typo. 10 11 Test: fast/text/synthetic-oblique.html 12 13 * platform/graphics/FontCascade.h: 14 (WebCore::FontCascade::syntheticObliqueAngle): 15 * platform/graphics/coretext/FontCascadeCoreText.cpp: 16 (WebCore::computeOverallTextMatrix): 17 1 18 2020-10-16 Said Abou-Hallawa <sabouhallawa@apple.com> 2 19 -
trunk/Source/WebCore/platform/graphics/FontCascade.h
r268561 r268638 197 197 bool primaryFontIsSystemFont() const; 198 198 199 static int syntheticObliqueAngle() { return 14; }199 static float syntheticObliqueAngle() { return 14; } 200 200 201 201 std::unique_ptr<DisplayList::DisplayList> displayListForTextRun(GraphicsContext&, const TextRun&, unsigned from = 0, Optional<unsigned> to = { }, CustomFontNotReadyAction = CustomFontNotReadyAction::DoNotPaintIfFontNotReady) const; -
trunk/Source/WebCore/platform/graphics/coretext/FontCascadeCoreText.cpp
r268561 r268638 147 147 result.setD(-result.d()); 148 148 if (platformData.syntheticOblique()) { 149 float obliqueSkew = tanf( FontCascade::syntheticObliqueAngle() * piFloat / 180);149 float obliqueSkew = tanf(deg2rad(FontCascade::syntheticObliqueAngle())); 150 150 if (platformData.orientation() == FontOrientation::Vertical) { 151 151 if (font.isTextOrientationFallback()) … … 154 154 result = AffineTransform(1, -obliqueSkew, 0, 1, 0, 0) * result; 155 155 } else 156 result = AffineTransform(1, 0, -obliqueSkew, 1, 0, 0) ;156 result = AffineTransform(1, 0, -obliqueSkew, 1, 0, 0) * result; 157 157 } 158 158
Note: See TracChangeset
for help on using the changeset viewer.