GithubHelp home page GithubHelp logo

Comments (8)

Brottweiler avatar Brottweiler commented on August 22, 2024

I can't seem to reproduce it. If I change my window size, the font scales with it. At most I can loose the left and right pipes, but when it changes font size I can see them again. I never seem to get scrollbars, except if the cowsay is too high so I have to scroll down.

Edit: As I said that, I got one which had a horizontall scrollbar. A large cowsay with art then text saying

If you've got the job, 
we've got the frob.

from cowtab.

philj56 avatar philj56 commented on August 22, 2024

I get incorrect borders without being too wide on some:
screenshot 2016-12-24 at 13 32 12

from cowtab.

abendebury avatar abendebury commented on August 22, 2024

@Brottweiler: Did you try specifically the one in the screenshot? It might be that specific fortune causing issues.

from cowtab.

metarmask avatar metarmask commented on August 22, 2024

The border breaks because the fortune is using tabs, "\t".length is one but tabs are rendered as 8 characters. A fix can be found in #3.

from cowtab.

Brottweiler avatar Brottweiler commented on August 22, 2024

Especially noticable when using the tux-big. It's so big that you cannot ever read the fortune... the text scales, but it needs to not be able to go outside the window I guess.

from cowtab.

tanishq-dubey avatar tanishq-dubey commented on August 22, 2024

The ASCII art is definitely a problem. The fortune files do use a nonstandard tab width, just as metarmask noticed, I think most of the fortune files were normalized to fix this. In addition, the text size is just a CSS fix right (I'm just guessing, might be something else).

from cowtab.

Brottweiler avatar Brottweiler commented on August 22, 2024

This is probably not an issue anymore with the new update since the cowsay font seems smaller.

from cowtab.

tanishq-dubey avatar tanishq-dubey commented on August 22, 2024

Yep, tagged and closed. The scaling is now based on vertical viewport height instead of horizontal. Should fix it all. Reopen if you encounter another broken fortune.

from cowtab.

Related Issues (8)

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.