FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
115 stars 19 forks source link

Custom font does not work properly #3575

Open itsstevenliu opened 1 month ago

itsstevenliu commented 1 month ago

Can we access your project?

Current Behavior

Uploading a custom font and using it does not work as expected. I have a whole font family and none of it work.

Expected Behavior

Font should be per custom font set up

Steps to Reproduce

  1. Upload custom font (see sample provided file for bold font) and set it as bold
  2. Create new page
  3. Use custom font in text (select bold). FF IDE shows bolding
  4. Local Test on iOS or TestFlight and it is very thin and does not equate to what is shown on FF IDE. Normal web 'test mode' works but does not work when testing on iOS.

Custom font file (cannot be uploaded to GitHub as it is a .ttf file) https://drive.google.com/file/d/1zG0ezCIZYinsSj4sRJ9Ec0hvMAMHQ0NT/view?usp=drive_link

Reproducible from Blank

Bug Report Code (Required)

IT4ohcrq4c9JpbxK0LXyb8FvryQ7OUw8bIEvmspOEC0jF7KuBu0fdszORFFoZ9+8aVNcOVCYgkMCw9LWkYTEUu05PU2tRpRdyqlqEgzOe2i7R8nSCYe/P0Z9N9pmCBWM5reN3RYlHPRhS0IGwDmmCNy9FnLDBOu/Zwh9f6PHaOI=

Visual documentation

SCR-20240807-tfso IMG_2164 SCR-20240807-tdgo

Environment

- FlutterFlow version: 4.1.82
- Platform: Web and Mac
- Browser name and version: Version 127.0.6533.89 
- Operating system and version affected: 14.6 (23G80)

Additional Information

No response

Alezanello commented 1 month ago

Hello!

I wasn't able to replicate the issue. I used the font you provided, uploaded as "Testing Font," as shown in the following screenshot. I ran the app in the simulator, and it loaded correctly.

Imagen de WhatsApp 2024-08-07 a las 10.55.10_a66773c5.jpg

Best regards,
Azanello

itsstevenliu commented 1 month ago

Thanks @Alezanello

Are you able to show us how you've set up the file on your FF? This is our view.

image image
Alezanello commented 1 month ago

Of course!


This is the set up in Custom fonts

image.png
itsstevenliu commented 1 month ago

Hey @Alezanello

I think I found the source. When I upload one font file into this font family, it works. However it does not work when you upload multiple font files into the font family. Can you please try?

You can access the font family files here: https://drive.google.com/drive/u/0/folders/1gUpDD2PqZ2H-aiLXK5_vTki6H-h2Mg7q

image image image
github-actions[bot] commented 4 weeks ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

itsstevenliu commented 4 weeks ago

Not stale, waiting for reply

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

Alezanello commented 1 week ago

Hello,

I apologize for the late response. Does this issue still persist, or was it fixed in the latest FlutterFlow updates?

itsstevenliu commented 1 week ago

Hey @Alezanello, yes we're still experiencing the same problem.

For example, this is a screenshot straight from the app vs FlutterFlow. Per previous post, we uploaded a list of font. The example shows we assigned font file Neue Plak Text Bold to Font Weight 700. On the FF IDE, it shows the right thickness but once deployed, it is totally different and much thinner

image image image