Coder Social home page Coder Social logo

Comments (4)

finscn avatar finscn commented on May 29, 2024

post an image :
image

from snowb-bmf.

finscn avatar finscn commented on May 29, 2024

如果这两个属性不能直接取整, 是否可以只保留2位小数呢?

from snowb-bmf.

SilenceLeo avatar SilenceLeo commented on May 29, 2024

可否提供一下你的项目文件?

from snowb-bmf.

finscn avatar finscn commented on May 29, 2024

可否提供一下你的项目文件?

你好 确实不太方便 .因为我们用到的是一个公司重金购买的商业字体. 而从sbf的体积来看 它好像是包含了这个字体. 不太方便上传.

我看了下你的代码 其实不排除这个字体里的 xoffset 就是小数, 然后在浮点数误差的影响下 , 变成了非常长的一串小数.

我觉得我的那个PR 应该能解决这个问题.

from snowb-bmf.

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.