Skip to content

Conversation

GaryQian
Copy link
Contributor

@GaryQian GaryQian commented Mar 1, 2019

Fixes part of #28704

This exposes decorationThickness to painting TextStyle, which is an already implemented but hidden property in LibTxt.

Tests verify dart:ui receives the decoration thickness. The LibTxt tests verify that the thickness is respected.

git log --oneline --no-merges 5ccee95..31b289f
31b289f Fix indexing error in dart:ui TextStyle.toString (flutter/engine#8143)
fc2e6b6 Typo "fast an inline" to "fast and inline" (flutter/engine#8142)
0f19b2d Reland PerformanceOverlayLayer golden test (flutter/engine#8140)
073aadd Fix TextStyle decode misalignment (flutter/engine#8141)
d87d290 Roll src/third_party/skia 406b068942f0..2eecc3ea3d71 (11 commits) (flutter/engine#8138)
5cef4a0 Use final state passed to dart before initialization as the initial lifecycleState. (flutter/engine#8124)
ffef51b Roll src/third_party/skia 665bc64a2dc4..406b068942f0 (8 commits) (flutter/engine#8137)
48efd0f Roll src/third_party/skia 762ddd7e4352..665bc64a2dc4 (2 commits) (flutter/engine#8129)
f666adb Roll src/third_party/skia 2932a458957d..762ddd7e4352 (3 commits) (flutter/engine#8128)
8b0df6d Bugfix #29203: NPE in getAccessibilityProvider in old FlutterView. (flutter/engine#8126)
8f7b183 Roll src/third_party/skia c6d8781c4036..2932a458957d (2 commits) (flutter/engine#8125)
52b67fd Expose decorationThickness to dart:ui (flutter/engine#8008)

@GaryQian GaryQian self-assigned this Mar 1, 2019
@goderbauer goderbauer added the framework flutter/packages/flutter repository. See also f: labels. label Mar 1, 2019
@GaryQian
Copy link
Contributor Author

GaryQian commented Mar 5, 2019

Will require an engine roll with flutter/engine#8008 to make tests happy

@GaryQian
Copy link
Contributor Author

GaryQian commented Mar 5, 2019

(for reference) Have spoken with Hixie and have approval on the addition of the new decorationThickness property from an API design standpoint.

@GaryQian GaryQian added the a: typography Text rendering, possibly libtxt label Mar 6, 2019
@GaryQian GaryQian requested a review from cbracken March 6, 2019 21:44
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with two nits.

/// The thickness of the decoration stroke as a muliplier of the thickness
/// defined by the font.
///
/// The font provides a base stroke width for decorations which scales off
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doc would probably be slightly more accessible if it gave one or two concrete examples of what a decoration stroke may be that's affected by this property.

@GaryQian
Copy link
Contributor Author

Mistake fixed in flutter/engine#8141, will need to be rolled to it in order to pass.

@GaryQian GaryQian changed the title Expose decorationThickness in TextStyle Expose decorationThickness in TextStyle. Roll engine (12 commits) Mar 13, 2019
@GaryQian GaryQian merged commit 96cb84a into flutter:master Mar 13, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: typography Text rendering, possibly libtxt framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants