"Failed to extract font properties" when start Faceswap.

Installing and setting up FaceSwap


Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

Post Reply
User avatar
water_35
Posts: 4
Joined: Sun Jul 25, 2021 10:41 am

"Failed to extract font properties" when start Faceswap.

Post by water_35 »

When I run Faceswap via:

Code: Select all

python faceswap.py gui

, appear these messages below:

Failed to extract font properties from /usr/share/fonts/google-noto-emoji/NotoColorEmoji.ttf: In FT2Font: Can not load face. Unknown file format.

Failed to extract font properties from /usr/share/fonts/cantarell/Cantarell-VF.otf: In FT2Font: Can not load face (error code 0x8e)

I confirmed the two files are exist and update:

Code: Select all

/usr/share/fonts/google-noto-emoji/NotoColorEmoji.ttf

Code: Select all

/usr/share/fonts/cantarell/Cantarell-VF.otf

But it looks like not to affect Faceswap to use correctly.


User avatar
torzdf
Posts: 1495
Joined: Fri Jul 12, 2019 12:53 am
Answers: 127
Has thanked: 51 times
Been thanked: 287 times

Re: "Failed to extract font properties" when start Faceswap.

Post by torzdf »

This looks like a corrupt font file to me.

This isn't specific to faceswap, so google might give you the best idea for a solution:
https://stackoverflow.com/questions/486 ... -load-face

My word is final


User avatar
zzukaba
Posts: 6
Joined: Wed Aug 25, 2021 9:22 am

Re: "Failed to extract font properties" when start Faceswap.

Post by zzukaba »

torzdf wrote: Mon Jul 26, 2021 8:54 am

This looks like a corrupt font file to me.

This isn't specific to faceswap, so google might give you the best idea for a solution:
https://stackoverflow.com/questions/486 ... -load-face

Please,I'm sorry to bother you, but can you help me?

I follow the link you sent and deleted all files and folder in:/Users/YOUR_USER/.matplotlib
and then uninstalling and reinstalling 'matplotlib' from my environment in Anaconda Navigator.

But there are still problems:

(faceswap) D:\python\Lib\faceswap>python faceswap.py gui
Setting Faceswap backend to NVIDIA
08/25/2021 17:01:55 INFO Log level set to: INFO
08/25/2021 17:01:57 INFO Failed to extract font properties from C:\Windows\Fonts\mstmc.ttf: In FT2Font: Can not load face. Unknown file format.
08/25/2021 17:01:57 INFO generated new fontManager
08/25/2021 17:01:58 INFO Failed to extract font properties from C:\Windows\Fonts\mstmc.ttf: In FT2Font: Can not load face. Unknown file format.

Maybe because I am not a mac system?


User avatar
torzdf
Posts: 1495
Joined: Fri Jul 12, 2019 12:53 am
Answers: 127
Has thanked: 51 times
Been thanked: 287 times

Re: "Failed to extract font properties" when start Faceswap.

Post by torzdf »

Honestly, I don't know why this happens. However, it is just an info message generated by Matplotlib when scanning your font files, that it can't process a specific font. I don't believe it impacts the workings of Faceswap in any way. Whilst it is annoying to be nagged every time you launch faceswap, I think you can safely just ignore it.

My word is final


User avatar
zzukaba
Posts: 6
Joined: Wed Aug 25, 2021 9:22 am

Re: "Failed to extract font properties" when start Faceswap.

Post by zzukaba »

torzdf wrote: Sat Sep 04, 2021 8:56 am

Honestly, I don't know why this happens. However, it is just an info message generated by Matplotlib when scanning your font files, that it can't process a specific font. I don't believe it impacts the workings of Faceswap in any way. Whilst it is annoying to be nagged every time you launch faceswap, I think you can safely just ignore it.

Very much appreciate it


Post Reply