Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Strut implementation - #7414

Merged
GaryQian merged 27 commits into
flutter-team-archive:masterfrom
GaryQian:strut
Jan 30, 2019
Merged

GaryQian merged 27 commits into
flutter-team-archive:masterfrom
GaryQian:strut

Conversation

@GaryQian

@GaryQian GaryQian commented Jan 9, 2019 •

Copy link
Copy Markdown
Contributor

Engine side strut implementation. Part of the work required for flutter/flutter#26085.

This also introduces the forceStrutHeight feature that locks all line heights to the height of the strut. This allows for guaranteed rigid line spacing.

Requires framework-side implementation and manual roll.

@jason-simmons jason-simmons left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Hixie for API review

Comment thread third_party/txt/src/txt/paragraph.cc Outdated
Comment thread third_party/txt/src/txt/paragraph.cc Outdated
Comment thread third_party/txt/src/txt/paragraph_style.h Outdated
Comment thread third_party/txt/src/txt/paragraph.cc Outdated
Comment thread third_party/txt/src/txt/paragraph.cc Outdated
@GaryQian

GaryQian commented Jan 10, 2019 •

Copy link
Copy Markdown
Contributor Author

Disabling the strut libtxt unit tests as it appears those tests are platform dependent due to skia providing differing font metrics for different OSes. They should pass locally on glinux machines.

Will look into supplying fake metrics or using ahem to ensure we are doing the strut calculations correctly.

Should be able to add framework-side golden tests based on ahem which should provide consistent metrics.

Comment thread lib/ui/text.dart Outdated
Comment thread lib/ui/text.dart Outdated
Comment thread lib/ui/text/paragraph_builder.cc Outdated
Comment thread lib/ui/text.dart Outdated
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 1, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 1, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 1, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 1, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 1, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 1, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 1, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 2, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 2, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 2, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 2, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 3, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 3, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 4, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

4 participants