- 1

How to fix it?

Added fonts in woff and woff2 format. Visual Studio Code writes, "The file is not displayed in the editor because it is either binary or uses an unsupported text encoding. Do you want to open it anyway?". I open the file and there are strange characters, the encoding on this file is utf-8. Brackets defines this encoding as windows-1252. Restarting did not help, installing the hexdump plugin did not help either.

21st Feb 2020, 6:50 AM
Anna/Аня
Anna/Аня - avatar
6 Antworten
+ 2
It didn’t help, it turns out that fonts do not work in all projects, I checked on two computers.
21st Feb 2020, 8:08 AM
Anna/Аня
Anna/Аня - avatar
+ 1
so what you wanted to do with the font ? install it to vscode for editor font ? or use it in a project ? i mean its a font file, simply open it doesnt really do anything.
21st Feb 2020, 7:34 AM
Taste
Taste - avatar
+ 1
Taste Install this font for the site text in my project and the code editor cannot read it.
21st Feb 2020, 7:50 AM
Anna/Аня
Anna/Аня - avatar
0
Where did you add those woff fonts? On Windows? I don´t know anything about them.
21st Feb 2020, 7:20 AM
Fernando Pozzetti
Fernando Pozzetti - avatar
0
Fernando Pozzetti I downloaded them to the site, added them to the project folder.
21st Feb 2020, 7:25 AM
Anna/Аня
Anna/Аня - avatar
0
ooh, dont worry you dont need to install it. you can directly use them in the web page using css https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face
21st Feb 2020, 7:53 AM
Taste
Taste - avatar