Giter VIP home page Giter VIP logo

Comments (4)

longfangsong avatar longfangsong commented on September 1, 2024

测试文本:
The procedure was successfully applied for the determination of carbamazepine in pharmaceutical samples, human plasma and breast milk.

然后标记procedure正常,标记“successfully” 开始位置正确,结束位置错了,“successfully”后面的词标记的开始和结束都错位了。

本地和https://synyi.github.io/poplar/#/annotate 在线测试都是同样结果。

已经在修复这一问题。
这一问题似乎只在Firefox上存在,如果急着使用,可以尝试使用Chrome。

from poplar.

kinginsun avatar kinginsun commented on September 1, 2024

牛!非常感谢

from poplar.

longfangsong avatar longfangsong commented on September 1, 2024

经查,该问题是由于部分浏览器+字体的组合下,会将多个字符(例如相邻的f和l)渲染为单个glyph,而getExtentOfChar()方法此时返回的width并非这个字符的宽度。

在解决这一问题之前,较为保险的方案是使用等宽字体作为英文字体。

Stackoverflow 上的相关问题

from poplar.

kinginsun avatar kinginsun commented on September 1, 2024

把font-family改成”Courier New“后就正常了,谢谢。

from poplar.

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.