Skip to content

Commit

Permalink
text [nfc]: Update comment on weightVariableTextStyle(…).fontWeight
Browse files Browse the repository at this point in the history
Related: zulip#500
  • Loading branch information
chrisbobbe committed Feb 2, 2024
1 parent a769a24 commit 4c0c6cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/widgets/text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,9 @@ TextStyle weightVariableTextStyle(BuildContext? context, {
fontVariations: [FontVariation('wght', value)],

// This use of `fontWeight` shouldn't affect glyphs in the preferred,
// "wght"-axis font. If it does, see for debugging:
// https://github.com/zulip/zulip-flutter/issues/65#issuecomment-1550666764
// "wght"-axis font. But it can; see upstream bug:
// https://github.com/flutter/flutter/issues/136779
// TODO(#500) await/send upstream bugfix?
fontWeight: clampVariableFontWeight(value),

inherit: true);
Expand Down

0 comments on commit 4c0c6cd

Please sign in to comment.