Code Monkey home page Code Monkey logo

Comments (3)

jgarvin avatar jgarvin commented on July 18, 2024

Sorry here is a full yet more minimal test case: https://github.com/jgarvin/txtbug

In making it I discovered it depends on using my specific font. If you get rid of the break statement in main you will actually get to see it render though, and it definitely renders with nonzero y size.

from quicksilver.

jgarvin avatar jgarvin commented on July 18, 2024

With the examples font, the y sizes still seem wrong, just not zero:

[game/src/main.rs:50] chunk.size = Vector {
    x: 113.84375,
    y: 1.0,
}
[game/src/main.rs:50] chunk.text.len() = 7
[game/src/main.rs:50] &chunk.text = "adeseru"

[game/src/main.rs:50] chunk.size = Vector {
    x: 2098.7344,
    y: 8.0,
}
[game/src/main.rs:50] chunk.text.len() = 147
[game/src/main.rs:50] &chunk.text = "orinreprehenderitinvoluptatevelitessecillumdoloreeufugiatnullapariatur.Excepteursintoccaecatcupidatatnonproident,suntinculpaquiofficiadeseruntmolli"

[game/src/main.rs:50] chunk.size = Vector {
    x: 1701.9063,
    y: 7.0,
}
[game/src/main.rs:50] chunk.text.len() = 112
[game/src/main.rs:50] &chunk.text = "iqua.Utenimadminimveniam,quisnostrudexercitationullamcolaborisnisiutaliquipexeacommodoconsequat.Duisauteiruredol"

These are all rendered from the same font object, and I'm using draw rather than draw_wrapping, so I'd expect their y extents to always be the same, or maybe differ a little because of letters that drop below the horizontal line like 'p', but it says the first string is 1/8th the height of the second string which seems too dramatic. Also assuming the unit is pixels, the rendering is clearly more than 1 pixel high :)

from quicksilver.

ryanisaacg avatar ryanisaacg commented on July 18, 2024

This seems like the same issue as #607; I hope that I will be able to replicate this one!

from quicksilver.

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.