Git Product home page Git Product logo

Comments (5)

lojjic avatar lojjic commented on May 27, 2024 1

That font has some very thin line features which can be difficult for SDF-based rendering. You might see some improvement if you set a higher sdfGlyphSize.

from troika.

lojjic avatar lojjic commented on May 27, 2024 1

Hmm, there's something else going on weird with that A glyph in particular. It looks like its bounding box is gigantic, which is decreasing the precision of the SDF by a lot...
image

from troika.

lojjic avatar lojjic commented on May 27, 2024 1

Yeah that A has a stray point way out at -3914,-1812. This needs to be fixed in the font.

image

from troika.

AxiomeCG avatar AxiomeCG commented on May 27, 2024

Thank you for the tip, it makes it better but aliased with sdfGlyphSize=512
image

I happen to have increase the weight of the font in a font editor to see if it would be better, and it is nicer, but I would like if possible to be able to use the lib at its maximum potential for all kind of fonts so it is nice to know there is some adjustments that can be done !

from troika.

AxiomeCG avatar AxiomeCG commented on May 27, 2024

Thank you for your guidance, I guess I can close the issue where it is mostly about the font, more than the lib itself !

from troika.

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.