Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font Size doesn't adapt to Dynamic Typing #1807

Open
1 of 2 tasks
ravikmrsingh8 opened this issue Jun 27, 2023 · 0 comments
Open
1 of 2 tasks

Font Size doesn't adapt to Dynamic Typing #1807

ravikmrsingh8 opened this issue Jun 27, 2023 · 0 comments

Comments

@ravikmrsingh8
Copy link

ravikmrsingh8 commented Jun 27, 2023

Environment Information

  • Platform:
    • iOS
    • macOS
  • Package version(s): (fill this out, include which package manager you're using) 0.19.0
  • Xcode and OS versions: (fill this out if relevant) xcode 14.3, ios 15+

Please provide a reproduction of the bug:

import FluentUI
import SwiftUI

struct ContentView: View {
    var body: some View {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundColor(.accentColor)
			Text("Hello, world!").font(Font(FluentTheme.shared.typography(.body1Strong)))
        }
        .padding()
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

Above code used FluentTheme to read font info. when i run this code and chose dynamic typing from xcode debug option or set the font size from Accessibility >> Large Text Option, Then font in sample app is not adapting to the changed size.

Actual behavior:

Font size not adapting to changed value

Expected behavior:

Font size should change according to settings

Priorities and help requested:

Are you willing to submit a PR to fix? (Yes, No) No

Requested priority: (Blocking, High, Normal, Low) High

Products/applications affected: (if applicable)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant