Failed to decode downloaded font как исправить
Перейти к содержимому

Failed to decode downloaded font как исправить

  • автор:

Курсы javascript

Может ли быть ещё какое-то обьяснение кроме того что файл битый ?

Подключение

@font-face < font-family: Milford; src: url(fonts/MILFCD_B.TTF); >body

Хром жалуется
Failed to decode downloaded font

Firefox жалуется
downloadable font: maxp: bad max_zones: 3 (font-family: «Milford» style:normal weight:normal stretch:normal src index:0)

downloadable font: cmap: bad glyph id offset (26534 > 412) (font-family: «Milford» style:normal weight:normal stretch:normal

downloadable font: cmap: failed to parse table (font-family: «Milford» style:normal weight:normal stretch:normal src index:0)

downloadable font: rejected by sanitizer (font-family: «Milford» style:normal weight:normal stretch:normal src index:0)

Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Failed to decode downloaded font: #2

abdullahe opened this issue Nov 9, 2020 · 6 comments

Error: Failed to decode downloaded font: #2

abdullahe opened this issue Nov 9, 2020 · 6 comments
question Further information is requested

Comments

abdullahe commented Nov 9, 2020

I am getting this error in console, when I try to use the plugin. The fonts don’t show but the bundle is developed, and site works.

Here is my folder structure:

├───src │ ├───components │ │ all.sass └───static ├───fonts │ local_fonts.css │ montserrat-latin-ext-400-italic.woff │ montserrat-latin-ext-400-italic.woff2 │ montserrat-latin-ext-400-normal.woff │ montserrat-latin-ext-400-normal.woff2 
@font-face < font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 400; src: url("/montserrat-latin-ext-400-normal.woff2") format("woff2"), url("/montserrat-all-400-normal.woff") format("woff"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; >@font-face < font-family: "Montserrat"; font-style: italic; font-display: swap; font-weight: 400; src: url("/montserrat-latin-ext-400-italic.woff2") format("woff2"), url("/montserrat-all-400-italic.woff") format("woff"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; >

imported to all.sass like this:

This is probably my mistake because I am new to all this. Any tips would be appreciated.

The text was updated successfully, but these errors were encountered:

Forums

Hi, I have been trying to crack this nut for a while now with no luck so i come here with my hat i my hand.. I added custom webfonts to my wordpress site, but they return a “Failed to decode downloaded font” error when i check it in the chrome inspector. —————– style.css —————–

@font-face < font-family: 'montserrathairline'; src: url('http://motionair.no/fonts/montserrat-hairline-webfont.eot'); src: url('http://motionair.no/fonts/montserrat-hairline-webfont.eot?#iefix') format('embedded-opentype'), url('http://motionair.no/fonts/montserrat-hairline-webfont.woff2') format('woff2'), url('http://motionair.no/fonts/montserrat-hairline-webfont.woff') format('woff'), url('http://motionair.no/fonts/montserrat-hairline-webfont.ttf') format('truetype'), url('http://motionair.no/fonts/montserrat-hairline-webfont.svg#montserrathairline') format('svg'); font-weight: normal; font-style: normal; >

—————– CSS (a lot, but just to make sure i got the right one —————

p < font-family: 'montserrathairline'; >h1,h2 < font-family: 'montserrathairline'; >h3,h4 < font-family: 'montserrathairline'; >h5,h6 < font-family: 'montserrathairline'; >.x-topbar p < font-family : 'montserrathairline'; >.x-brand < font-family : 'montserrathairline'; >body,a

This all returns the following code, and my text displays as “Serif regular” ERROR in chrome inspector
Failed to decode downloaded font: http://motionair.no/fonts/montserrat-hairline-webfont.woff2
(index):1 OTS parsing error: Failed to convert WOFF 2.0 font to SFNT
(index):1 Failed to decode downloaded font: http://motionair.no/fonts/montserrat-hairline-webfont.woff
(index):1 OTS parsing error: incorrect file size in WOFF header
(index):1 Failed to decode downloaded font: http://motionair.no/fonts/montserrat-hairline-webfont.ttf
(index):1 OTS parsing error: post: table overruns end of file Any and all help here greatly appreciated, i have tried a lot of difrent solutions with no luck. This is my last option before i revert to a regular google webfont. Thank you for your time! -R

March 1, 2016 at 4:05 pm #238595

Are hosting the fonts yourself or trying to hotlink them? I’d suggest downloading them and linking locally. Or just Google the error. This isn’t a CSS issue as such…it’s a progamming one,

March 2, 2016 at 1:17 am #238606
Participant

I am hosting them on my website and when i go to the direct link i download a font that works. I tried google with no luck. Thanks anyway!

March 8, 2016 at 6:36 pm #238852
Participant

I just had the same issue – but with Font Awesome, which is a really well known font. Turned out this was caused by a problem with FTP. The file was uploaded as text (ASCII) instead of binary, which corrupted the file. I simply changed my FTP software to binary, re-uploaded the font files, and then it all worked.

Как исправить ошибку Failed to decode downloaded font?

tigroid3

css

  • CSS

Как уточнить в CSS какой из значок редактировать?

  • 1 подписчик
  • 4 часа назад
  • 41 просмотр

html

  • HTML
  • +1 ещё

Как стилизовать данный элемент?

  • 1 подписчик
  • 4 часа назад
  • 32 просмотра

css

  • CSS

Как сделать margin в процентах, чтобы не ломался блок?

  • 1 подписчик
  • 9 часов назад
  • 113 просмотров

html

  • HTML

Как еще можно оформить задание с таблицей?

  • 1 подписчик
  • 10 часов назад
  • 43 просмотра

html

  • HTML
  • +1 ещё

Как сверстать такой блок на флексах с изменением порядка его элементов?

  • 1 подписчик
  • 11 часов назад
  • 59 просмотров

html

  • HTML
  • +2 ещё

Как лучше оформить такую галерею?

  • 2 подписчика
  • 13 часов назад
  • 100 просмотров

html

  • HTML
  • +1 ещё

Как сделать скролл по горизонтали с двумя рядами внутри?

  • 1 подписчик
  • 14 часов назад
  • 37 просмотров

html

  • HTML
  • +3 ещё

Верстка блоку отзивов,как сделать так как на дизайне?

  • 1 подписчик
  • вчера
  • 67 просмотров

css

  • CSS

Как сделать сетку/флекс с переносом из блоков одинаковой ширины, не меньшей чем ширина самого широкого из них?

  • 1 подписчик
  • вчера
  • 40 просмотров

html

  • HTML

Можно ли использовать несколько типов микроразметки на 1 странице?

  • 1 подписчик
  • вчера
  • 42 просмотра

от 40 000 до 55 000 ₽

от 35 000 до 40 000 ₽

30 окт. 2023, в 01:00

50000 руб./за проект

30 окт. 2023, в 00:03

10000 руб./за проект

29 окт. 2023, в 23:47

1200 руб./за проект

Минуточку внимания

Присоединяйтесь к сообществу, чтобы узнавать новое и делиться знаниями

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *