Giter Club home page Giter Club logo

Comments (9)

capnm avatar capnm commented on September 7, 2024 1

If I hit those 3 bins and reimport, your issue is fixed for me (Linux, v4.3.beta1 or github tip).

Screenshot from 2024-06-17 18-56-25

Screenshot from 2024-06-17 18-56-38

from godot.

bruvzg avatar bruvzg commented on September 7, 2024 1

I thought you also needed the *.fnt file for kerning the bitmap files? No?

You can manually specify kernings and custom glyph offsets/advanced in the image import settings, importer should be renamed it was monospace when it was first added, but this is no longer the case. The source image is expected to be uniform character grid (you can't specify arbitrary rect for the character), but the font itself is not monospaced.

from godot.

bruvzg avatar bruvzg commented on September 7, 2024

The issue seems to be how HarfBuzz apply kerning, half is applied to the previous glyph advance, half to the next glyph offset. This works with normal fonts, but with 1px kerning it will result in 0.5 pixel offsets and rounding errors.

from godot.

DarkMarmot avatar DarkMarmot commented on September 7, 2024

@bruvzg thanks for working on such quick fixes for this feature! As someone relatively new to Godot, I really appreciate it!

from godot.

DarkMarmot avatar DarkMarmot commented on September 7, 2024

@capnm That deletes the kerning pairs, thus removing character specific kerning entirely. This bug report is about the usage of the kerning pairs feature itself.

from godot.

capnm avatar capnm commented on September 7, 2024

@capnm That deletes the kerning pairs, thus removing character specific kerning entirely. This bug report is about the usage of the kerning pairs feature itself.

Kerning pairs for monospace fonts? This is IMO a bug – you shouldn't use kerning here at all.

from godot.

DarkMarmot avatar DarkMarmot commented on September 7, 2024

Kerning pairs for monospace fonts? This is IMO a bug – you shouldn't use kerning here at all.

The datatype will probably be renamed to bitmap image fonts or such since this feature allows them to no longer be exclusively monospace.

from godot.

capnm avatar capnm commented on September 7, 2024

I thought you also needed the *.fnt file for kerning the bitmap files? No?

from godot.

capnm avatar capnm commented on September 7, 2024

I guess that's then the implemented spec...

bmfont -> Block type 5: kerning pairs

https://calligro.ideasalmanac.com/

from godot.

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.