Skip to content

Custom fonts does not work on New arch app #13662

Description

Problem Description

I tried to add a custom font to New arch app - as same method to old arch apps, described at #1254
but the fonts in app doesn't change, even after clean rebuild.

It seems to be folder hierarchy has changed from old arch to new arch, so I think method may also changed, but there aren't any documentations about it.

Steps To Reproduce

  1. Put the font file into the windows\%projectname%\Assets folder.
  2. Add font into project %projectname% in Visual Studio and set properties to Exculde:NO and Distribute:YES.
  3. Build the app.

Expected Results

App's fonts should changed.

CLI version

13.6.9

Environment

System:
  OS: Windows 10 10.0.19045
  CPU: "(4) x64 AMD Ryzen 3 2200U with Radeon Vega Mobile Gfx  "
  Memory: 22.64 GB / 31.63 GB
Binaries:
  Node:
    version: 20.10.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 3.8.4
    path: ~\AppData\Roaming\npm\yarn.CMD
  npm:
    version: 10.8.2
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    AllowAllTrustedApps: Enabled
    Versions:
      - 10.0.18362.0
      - 10.0.19041.0
      - 10.0.22000.0
      - 10.0.22621.0
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.11.35222.181 (Visual Studio Community 2022)
Languages:
  Java: 21.0.3
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.75.2
    wanted: ^0.75.2
  react-native-windows:
    installed: 0.75.1
    wanted: ^0.75.1
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Community Modules

No response

Target Platform Version

10.0.22621

Target Device(s)

Desktop

Visual Studio Version

Visual Studio 2022

Build Configuration

Debug

Snack, code example, screenshot, or link to a repository

No response

Activity

  1. added
    Needs: Triage 🔍
    on Sep 6, 2024
  2. chrisglein commented on Sep 9, 2024

    @chrisglein
    Member

    Yep, this is not yet implemented in the new arch. Great callout!

  3. added
    New Architecture
    and removed
    Needs: Triage 🔍
    on Sep 9, 2024
  4. jihoobyeon commented on Sep 11, 2024

    @jihoobyeon
    Author

    Yep, this is not yet implemented in the new arch. Great callout!

    Oh, then when it will be implemented? Will it take long time?

  5. added
    Workstream: Component Parity
    on Oct 3, 2024
  6. ArksHub commented on Nov 8, 2024

    @ArksHub

    Anything?, Any update on this issue!

  7. rafaelgomesyupi commented on Nov 13, 2024

    @rafaelgomesyupi

    same

  8. added
    Parity: Fabric vs. Paper
    on Feb 11, 2025
  9. anupriya13 commented on Apr 7, 2025

    @anupriya13
    Contributor

    Track here #14495 for font family implementation in textinput

  10. Ferry-200 commented on Oct 31, 2025

    @Ferry-200

    I’ve encountered the same issue. Also in RNW new arch, ver 80

    I followed the steps outlined in docs/SETUP-REACT-NATIVE.md#windows to move the font files to the specified locations, and in Visual Studio, I changed the properties of the font files to “Exclude: no” and “Distribute: true”. I also added the “font include” and “font filter” settings to the vsproj files, as suggested in the diff provided by DylanAkp/EmberTune/commit.

    However, I still haven’t been able to see the icons as expected.

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

Metadata

Metadata

Labels

Area: TextNew ArchitectureParity: Fabric vs. PaperWorkstream: Component Parityenhancementhelp wanted

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions