Skip to content

Custom font don't work #169375

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

Open
azabcodes opened this issue May 23, 2025 · 2 comments
Open

Custom font don't work #169375

azabcodes opened this issue May 23, 2025 · 2 comments
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@azabcodes
Copy link

ls assets/fonts

Tajawal-Black.ttf       Tajawal-ExtraBold.ttf   Tajawal-Light.ttf       Tajawal-Regular.ttf
Tajawal-Bold.ttf        Tajawal-ExtraLight.ttf  Tajawal-Medium.ttf
fonts:
  - family: "Tajawal"
    fonts:
      - asset: assets/fonts/Tajawal-ExtraLight.ttf
        weight: 200
      - asset: assets/fonts/Tajawal-Light.ttf
        weight: 300
      - asset: assets/fonts/Tajawal-Regular.ttf
        weight: 400
      - asset: assets/fonts/Tajawal-Medium.ttf
        weight: 500
      - asset: assets/fonts/Tajawal-Bold.ttf
        weight: 700
      - asset: assets/fonts/Tajawal-ExtraBold.ttf
        weight: 800
      - asset: assets/fonts/Tajawal-Black.ttf
        weight: 900
final ThemeData lightTheme = ThemeData(
  useMaterial3: true,
  fontFamily: 'Tajawal',
  brightness: Brightness.light,
  primaryColor: HexColorManager.colorF6F7F8,
  scaffoldBackgroundColor: HexColorManager.colorF6F7F8,
  appBarTheme: AppBarTheme(
    backgroundColor: HexColorManager.whiteColor,
    iconTheme: IconThemeData(color: HexColorManager.color313737),
    centerTitle: true,
    titleTextStyle: TextStyle(
      color: HexColorManager.color343F52,
      fontSize: 17.07,
      fontWeight: FontWeight.w600,
      letterSpacing: 1.07,
    ),
  ),
  textTheme: TextTheme(
    titleSmall: TextStyle(
      color: HexColorManager.blackColor,
      fontWeight: FontWeight.w500,
      fontSize: 10,
    ),
  ),
);
  Text(
                      context.l10n.complete_profile,
                      style: context.textTheme.titleSmall,
                      textAlign: TextAlign.center,
                      textScaler: const TextScaler.linear(1.0),
                    ),
@brainwo
Copy link

brainwo commented May 23, 2025

Custom font do work

https://docs.flutter.dev/cookbook/design/fonts

@darshankawar darshankawar added the in triage Presently being triaged by the triage team label May 26, 2025
@darshankawar
Copy link
Member

@azabcodes
Can you elaborate your issue by showing visual of the reported behavior and on which flutter version and platform are you seeing this ? Also check above link and follow it to see if using it you still get same behavior or expected.

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy