Code Monkey home page Code Monkey logo

Comments (9)

SolidZORO avatar SolidZORO commented on June 7, 2024

这个是什么软件?你知道如何修复吗?

from zpix-pixel-font.

weihao avatar weihao commented on June 7, 2024

https://github.com/HinTak/Font-Validator

from zpix-pixel-font.

SolidZORO avatar SolidZORO commented on June 7, 2024

image

我跑了一下测试发现只有这个 error,不过我不清楚如何修复,因为 bdf 生成 ttf 是使用工具 https://github.com/kreativekorp/bitsnpicas 来完成的,请问这个 error 会对使用造成什么困扰吗?

from zpix-pixel-font.

weihao avatar weihao commented on June 7, 2024

这个错误会让浏览器报错,字体失效

OTS parsing error: OS/2: Failed to parse table

from zpix-pixel-font.

weihao avatar weihao commented on June 7, 2024

get a font that isn't broken. The error is pretty clear: you're trying to load a font that has errors in it, and browsers won't let you use a font with errors in it, because errors can be used for zero-day exploits that browser makers can't know about. Get a woff2 (or older woff) version of your font (yes, that different extension is an important difference), and things should work (because you won't be able to woff convert a broken font either). – Mike 'Pomax' Kamermans Dec 6 '18 at 23:10

https://stackoverflow.com/questions/53648435/failed-to-decode-downloaded-font-ots-parsing-error-localhost

from zpix-pixel-font.

SolidZORO avatar SolidZORO commented on June 7, 2024

是否和你转换字体的方式有关? 我在 https://zpix.vercel.app/ 上使用 https://github.com/SolidZORO/zpix-pixel-font/blob/master/website/zpix.woff2 似乎没发现这个问题。

from zpix-pixel-font.

weihao avatar weihao commented on June 7, 2024

确实,我用了demo里的字体显示正常了。

你是怎么转换的呢?

from zpix-pixel-font.

SolidZORO avatar SolidZORO commented on June 7, 2024

# `ttf2woff2` is a npm module, RUN `npm i -g ttf2woff2` install

可以参考这个文件。

from zpix-pixel-font.

weihao avatar weihao commented on June 7, 2024

thx!

closing the issue.

from zpix-pixel-font.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.