Giter VIP home page Giter VIP logo

Comments (4)

oliverdowling avatar oliverdowling commented on June 6, 2024

I have noticed this behaviour as well, but I don't think that line is the cause of this issue. If you set the size as a square, the sides are still cut off, so min/max makes no difference in that case. I think it should still be min though, because it should be an icon that fits inside the given size. if you give a size of 100x10, you would still want to see the whole icon, and it should be size 10, shouldn't it? I don't believe that's the same issue though...

from fontawesome.swift.

aggrhm avatar aggrhm commented on June 6, 2024

Yup you're right. The way I get around that right now is looking up the ratio of the icon on fontawesome.io and setting the size of the image accordingly (i.e. if the icon isn't a square don't set the image to one). But this only works by changing max to min.

from fontawesome.swift.

oliverdowling avatar oliverdowling commented on June 6, 2024

On FontAwesome.io in their fixed width example, they have the width set as 1.28571429em which I assume is the maximum width:height ratio for their icons. When I get a chance in a few hours, I'll add this magic number into a pull request, along with your min/max fix.

from fontawesome.swift.

thii avatar thii commented on June 6, 2024

Fixed in #47.

from fontawesome.swift.

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.