Code Monkey home page Code Monkey logo

Comments (7)

octoshrimpy avatar octoshrimpy commented on June 10, 2024

likewise, I found a few characters in the charmap that appear to be out of place?
image

from cozette.

slavfox avatar slavfox commented on June 10, 2024

The readme states that the bounding box for all characters is 6x13px; some glyphs go outside the bounding box and cut into the 1px spacing between characters, and double-wide glyphs will make use of the full 13x13px.

The charmap issue is unrelated to this and is an unfortunate consequence of how combining marks are rendered and I've found no good workaround for it; combining codepoints "eat" the space before them, so they effectively render as "halfwidth".

from cozette.

slavfox avatar slavfox commented on June 10, 2024

The charmap issue is resolved in 1.19.1; the bounding box is a deliberate design decision (some glyphs are just unrepresentable with only 6px of width, and some other glyphs, like line drawing characters, rely on extending past the bounding box to look correct), so I'm closing this.

from cozette.

octoshrimpy avatar octoshrimpy commented on June 10, 2024

sounds good to me, and it all makes sense. does that mean then that the font is not monospace?

from cozette.

fluix-dev avatar fluix-dev commented on June 10, 2024

No, it does not.

from cozette.

slavfox avatar slavfox commented on June 10, 2024

The bounding box is constant - 6px width (+ 1px space) means a new glyph gets drawn every 7px; this is what makes the font monospace. The width of the glyph is irrelevant - a . or i are only 1px wide, a 🐍 is 13px wide, etc; but the bounding boxes are what matters.

In a monospace font with a 4px wide bounding box where - is eight pixels wide and _ is four pixels, the sequence -_ would look like -_. It would still be a monospace font.

from cozette.

octoshrimpy avatar octoshrimpy commented on June 10, 2024

I see. I'm trying to import Cozette into aseprite to generate a png I can import into lvllvl. if I set my grid to be 7px by 13px I should be alright then. I'll post it as well for others when I get it figured out haha

from cozette.

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.