fluentui-system-icons icon indicating copy to clipboard operation
fluentui-system-icons copied to clipboard

Flutter (3.13.0) web build fails with `Codepoint 32 not found in font`

Open josh-burton opened this issue 10 months ago • 9 comments

Related issue filed in the Flutter repo: https://github.com/flutter/flutter/issues/132711

Since updating to Flutter 3.13.0, my web release builds are now failing.

This seems to be caused by using this package, but I'm not certain if it's only this package or all custom font packages.

The error message when building is:

Codepoint 32 not found in font, aborting.

Target web_release_bundle failed: IconTreeShakerException: Font subsetting failed with exit code 255.

josh-burton avatar Aug 16 '23 23:08 josh-burton

any solution??

azinmapar avatar Aug 20 '23 09:08 azinmapar

downgrading flutter solved my problem

azinmapar avatar Aug 20 '23 12:08 azinmapar

Anyone got a proper solution?

jerrypaulsam avatar Aug 21 '23 10:08 jerrypaulsam

The solution is landing in a Flutter hotfix version very soon: https://github.com/flutter/flutter/issues/132711#issuecomment-1684152978

spydon avatar Aug 21 '23 16:08 spydon

Facing same issue The web app is on production and I had to do some hotfixes, I'm hating myself for updating to latest SDK!!

A temporary solution was to pass --no-tree-shake-icons flag with flutter build web --release for now.

flutter build web --release --no-tree-shake-icons

mhmzdev avatar Aug 22 '23 16:08 mhmzdev

Any solution? Facing same!

RoyalBosS-Ayush avatar Apr 04 '24 10:04 RoyalBosS-Ayush

Any solution? Facing same!

It should have been solved, which Flutter version are you on?

spydon avatar Apr 04 '24 10:04 spydon

Also note that if you are using fluent icons on Flutter web, you should really use my branch from this PR: https://github.com/microsoft/fluentui-system-icons/pull/642

This enables true tree shaking of the icons. Without this the fluent font files will be quite large.

josh-burton avatar Apr 04 '24 19:04 josh-burton