Giter Club home page Giter Club logo

Comments (4)

rjkroege avatar rjkroege commented on August 26, 2024

Frame is scary. 😊 I'll work on this next. But can you describe replica states a little more precisely?

It's not too hard to get Frame to panic so I'll work on making that happen less.

  • more unit tests for Frame (which will almost certainly drive some corrections)
  • rationalizing Insert
  • logging that shows why Frame's gotten sad. In particular, how we ended up getting to this:
panic: frame.Insert pt1 too far

from edwood.

rjkroege avatar rjkroege commented on August 26, 2024

C libframe isn't particularly robust either. And Edwood's Frame is all of those issues plus whatever translation errors we've added.

from edwood.

paul-lalonde avatar paul-lalonde commented on August 26, 2024

Change cd69e43 clamps the linewraps to the frame.
It looks like much of the instability is caused by pt1.Y values coming back out of bounds from the line wrap, which just blindly adds font height to get the next line. But that spills in many cases, and boom.
Clamping them has dramatically increased stability.

from edwood.

rjkroege avatar rjkroege commented on August 26, 2024

There's a larger problem with frame that I intend to fix: it assumes in a few places that the frame's rect.Max.Y % FontHeight == 0

from edwood.

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.