Giter VIP home page Giter VIP logo

Comments (6)

tarunmangukiya avatar tarunmangukiya commented on May 13, 2024

@Unknow-max Can you share a screenshot or something for reference?

from unicons.

 avatar commented on May 13, 2024

Hi, for sure!

First a quick recap:

obviously I modified the file to adapt it to local fonts, now it looks like this:

@font-face {
  font-family: unicons-line;
  src:  url(../../fonts/unicons/unicons.woff2) format('woff2'), url(../../fonts/unicons/unicons.woff) format('woff'), url(../../fonts/unicons/unicons.ttf) format('truetype'); // path to fonts
  font-weight: 400;
  font-style: normal;
}

[class^=uil-]:before, [class*=" uil-"]:before {
  font-family: unicons-line;
  font-style: normal;
  font-weight: 400;
  speak: none;
  display: inline-block;
  text-decoration: inherit;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

/* animations, before codes, ecc */

Now as said when I try to use an icon, it do not work. Here the markup that I use:

    <span class="uil-create-dashboard overview-tab__icon-inner icon-primary"></span>

The before code for the icon (create-dashboard) in my css file is:

.uil-create-dashboard:before {
  content: '\ec5e'
}

The : before code is right.

But this is the result:

immagine

Here are the styles applied to the pseudoelement:

immagine

If I try to instead the fonts in your CDN (https://unicons.iconscout.com/release/v3.0.0/fonts/line/unicons-0.woff.....), from my local CSS file all work fine.

The issue seems in the font.

Have a good day!

from unicons.

 avatar commented on May 13, 2024

Also, another thing. Sometimes when I use some icons (eg. uil-heart), the icon font seems to work, but it displays another icon. Buggy thing

from unicons.

 avatar commented on May 13, 2024

@tarunmangukiya do you think that the font have some type of issue or bug?

from unicons.

 avatar commented on May 13, 2024

@tarunmangukiya any update on this? Sorry to bother you, but having a project that need to go live in a few weeks times are running out.

from unicons.

lukaszwilk avatar lukaszwilk commented on May 13, 2024

@Unknow-max did you find a solution for that problem?

from unicons.

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.