Replies: 4 comments 1 reply
-
as far as I know, it's now not support yet, maybe in the next version |
Beta Was this translation helpful? Give feedback.
-
one year later, any update? i am facing the same issue! |
Beta Was this translation helpful? Give feedback.
-
I am also facing the same issue. I had used a custom local font but since the v5 upgrade, haven't found a way to inject it. Retaining the ability to use custom local fonts in the new antd v5 seems like a must to me. |
Beta Was this translation helpful? Give feedback.
-
I'm using a webfonts, so I create a global style using antd-style library. (I use woff2, other formats I couldn't test)
Then I set the fontFamily in the configProvider
|
Beta Was this translation helpful? Give feedback.
-
Hello, I'm just about to customize the new antd 5 for a react project. Loved it. I previously customize the antd 4 through .less file, but v5 seems having a different approach, I planned to customise the seed token that I see there is a key called
fontFamily
with string value. But where should I import the fonts file since I need to use my local fonts. Do antd provide a way to import the fonts?Beta Was this translation helpful? Give feedback.
All reactions