Skip to content

Font AutoScalingEnabled - #1774

Merged
PureWeen merged 24 commits into
mainfrom
font_scaling
Jul 24, 2021
Merged

PureWeen merged 24 commits into
mainfrom
font_scaling

Conversation

@PureWeen

@PureWeen PureWeen commented Jul 22, 2021 •

Copy link
Copy Markdown
Member

Description of Change

Implements #1683

For Android/WinUI the default behavior here doesn't change.

This now means that fonts on iOS will auto scale based on the dynamic font sizing settings on the device

image

Additions made

  • Adds Font.AutoScalingEnabled

  • Adds Button.FontAutoScalingEnabled

  • Adds DatePicker.FontAutoScalingEnabled

  • Adds Editor.FontAutoScalingEnabled

  • Adds Entry.FontAutoScalingEnabled

  • Adds FontElement.FontAutoScalingEnabled

  • Adds Label.FontAutoScalingEnabled

  • Adds Picker.FontAutoScalingEnabled

  • Adds RadioButton.FontAutoScalingEnabled

  • Adds SearchBar.FontAutoScalingEnabled

  • Adds Span.FontAutoScalingEnabled

  • Adds TimePicker.FontAutoScalingEnabled

  • Adds FontImageSource.FontAutoScalingEnabled

  • (Android) Adds

	public struct FontSize
	{
		public FontSize(float value, ComplexUnitType unit)
		{
			Value = value;
			Unit = unit;
		}

		public float Value { get; set; }
		public ComplexUnitType Unit { get; set; }
	}
  • (Android) Changes float IFontManager.GetSize => FontSize IFontManager.GetSize

Removed

  • Button.Font (to make Button consistent with all the other controls)
  • (iOS) IFontManager.GetSize Nothing outside of FontManager is currently using this so I just removed it for now

Comment thread src/Controls/src/Core/FontElement.cs Resolved
Comment thread src/Controls/src/Core/Span.cs Resolved
Comment thread src/Core/src/Fonts/FontSize.Android.cs Resolved
Comment thread src/Core/src/Primitives/Font.cs Resolved
Comment thread src/Controls/src/Core/Button.cs Resolved
Comment thread src/Core/src/Fonts/FontManager.iOS.cs Resolved
Comment thread src/Core/src/Fonts/IFontManager.iOS.cs Resolved
Comment thread src/Core/src/Primitives/Font.cs Resolved
@PureWeen PureWeen changed the title [WiP] Font scaling Font AutoScalingEnabled Jul 23, 2021
@PureWeen
PureWeen requested a review from Clancey July 23, 2021 18:23
@PureWeen
PureWeen marked this pull request as ready for review July 23, 2021 18:23
@PureWeen
PureWeen requested a review from mattleibow July 23, 2021 18:27
@PureWeen
PureWeen requested a review from rachelkang July 23, 2021 18:30
@arevellfraedom

arevellfraedom commented Jul 23, 2021 •

Copy link
Copy Markdown

Great change 👍
I can't quite tell what the defaults are for font scaling now on ios vs android? Because Android would have been on, iOS off before this change.

Also, in practice we found it necessary to limit how large fonts grow on iOS because it was impractical to design all the way up to AX5.

Our approach was to do this:

using var maxSizedFont = UIFontMetrics.DefaultMetrics.GetScaledFont(font, UITraitCollection.Create(UIContentSizeCategory.ExtraExtraExtraLarge));

var maxSize = maxSizedFont.PointSize;
return UIFontMetrics.DefaultMetrics.GetScaledFont(font, maxSize);

@rachelkang

Copy link
Copy Markdown
Member

@arevellfraedom font scaling will automatically be enabled across all the platforms including iOS now!

@arevellfraedom

Copy link
Copy Markdown

@arevellfraedom font scaling will automatically be enabled across all the platforms including iOS now!

This is great! But also a little scary! (lots of app layouts will break until people fix them)
You might want to have a way of turning this off globally to give people a chance to fix things up - it can be non-trivial to work out what to do.

@rachelkang

Copy link
Copy Markdown
Member

@arevellfraedom yes definitely! so this PR does both of those things! It both:

  1. Ensures font scaling will automatically be enabled across all the platforms including iOS
  2. Introduces a FontAutoScalingEnabled boolean property that can be set to false if so desired

rookiejava added a commit to rookiejava/maui that referenced this pull request Dec 20, 2021
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Dec 27, 2021
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Jan 3, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Jan 17, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Jan 19, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Jan 21, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Jan 27, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 4, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 8, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 10, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 21, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 23, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 25, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 28, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 2, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 2, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 3, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 4, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 7, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 8, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 8, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 9, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 10, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 10, 2022
- Window lifecycle (dotnet#1754)
- Move New Navigation Handler to Core and make it internal (dotnet#1800)
- Scrollview handler (dotnet#1669)
- ScrollView Resize + Window Handler Resize (dotnet#1676)
- Font AutoScalingEnabled (dotnet#1774)
- Rename Font Properties (dotnet#1755)
- Update layout system to ensure native measure/arrange are called for all controls, even from Page subclasses (dotnet#1819)
- IContainer as IList<IView> (dotnet#1724)
- Implement Layout padding for new StackLayouts and GridLayout (dotnet#1749)
- Delete all the TabIndex, TabStop, Focusable things! (dotnet#1777)
- Introduce SetSemanticFocus API via SemanticExtensions (dotnet#1829)
- Improve Window and AnimationManager (dotnet#1653)
- And so on
@heybuddiescode

heybuddiescode commented Mar 9, 2023 •

Copy link
Copy Markdown

Hej - I'm a bit late to the game, however I'm really missing a way to turn this off globally. The FontAutoScalingEnabled for some reason is not respected when applied as a Xaml Styling, therefore breaking our whole app.

Eg. this style in a separate file, every other attribute is respected, except for the FontAutoScalingEnabled.
<Style x:Key="TextSmall" TargetType="Label"> <Setter Property="TextColor" Value="{StaticResource PrimaryColor}" /> <Setter Property="FontFamily" Value="SourceSansPro-Regular" /> <Setter Property="FontSize" Value="Small" /> <Setter Property="FontAutoScalingEnabled" Value="False"/> </Style>

@mattleibow

Copy link
Copy Markdown
Member

@heybuddiescode can you open a new issue for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

fixed-in-6.0.100-preview.7.3 Look for this fix in 6.0.100-preview.7.3! legacy-area-a11y Relates to accessibility t/a11y Relates to accessibility t/breaking 💥

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants