Coder Social home page Coder Social logo

Comments (8)

ciriousjoker avatar ciriousjoker commented on May 17, 2024 1

Ok, no problem, I found another solution in my case.

from fitty.

ciriousjoker avatar ciriousjoker commented on May 17, 2024 1

@HugoHenault Sorry, not really. I just made the surroundings look nice so it doesn't look bad. Far from perfect, but works for us.

from fitty.

rikschennink avatar rikschennink commented on May 17, 2024

Please supply a test case

from fitty.

ciriousjoker avatar ciriousjoker commented on May 17, 2024

Here it is:

https://codepen.io/ciriousjoker/pen/vMEBZN

Set view to side by side and resize until the text wraps into the second line. Notice how the font size stays the same as directly before wrapping.

from fitty.

rikschennink avatar rikschennink commented on May 17, 2024

Ah, okay, now I understand. Fitty simply doesn't rescale wrapped text. It only handles single lines. You'd have to split the line yourself.

from fitty.

ciriousjoker avatar ciriousjoker commented on May 17, 2024

Then I don't get how Multiline works. I thought Multiline is the same as Singleline in that it rescales until the minimum font size and when it doesn't work anymore it splits it into two lines and starts from max fitting font size again.

Since it's not that way, do you have any plans to implement that?

from fitty.

rikschennink avatar rikschennink commented on May 17, 2024

It will force text on multiple lines if it no longer fits the container (if minSize reached).

It would require a totally different approach, as I'm super busy with other projects I don't have the time to look into it.

from fitty.

HugoHeneault avatar HugoHeneault commented on May 17, 2024

@ciriousjoker Would you mind sharing your solution? I'm also looking for a nice way to do that! Thanks! 🍻

from fitty.

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.