Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paria Shiri 36 posts 109 karma points
    Apr 08, 2022 @ 13:21
    Paria Shiri
    0

    Setting up Google Material Icons problem

    Hi there, thanks for the great package, it works fine with font awesome and some other icons, Unfortunately, I can't set it up to use the Google Material, I tried to follow your guidance when I go to https://github.com/mattecapu/md-icons-codepoints to grab Rules file there is no CSS file for downloading, could please tell me what I should I do now?

  • Mario Lopez 168 posts 958 karma points MVP 4x c-trib
    Apr 11, 2022 @ 06:07
    Mario Lopez
    0

    Hi Paria,

    It looks like the file with the codepoints has been replaced with a file containing a JSON object.

    In order to make it work, you need to download the file and remove the first and last { } so the Icon service that loads the file doesn't think it's an actual object and it returns it as plain text.

    The regex for the Selector input on the package configuration on Iconic needs to be "(\w+)":\s"[^"]"

  • Paria Shiri 36 posts 109 karma points
    Apr 11, 2022 @ 07:35
    Paria Shiri
    0

    thanks for the reply. I tried your suggestion but I have an error: There is an error somewhere, the extracted rules are 0. Check the regex.

    I have saved json file with removing {} as a css file. enter image description here

  • Paria Shiri 36 posts 109 karma points
    Apr 11, 2022 @ 07:47
    Paria Shiri
    100

    Just removing the \s from regex has solved the issue and it works fine. thank you a lot!

    I used this regex: "(\w+)":"[^"]" to match "xxx":"xxx"

Please Sign in or register to post replies

Write your reply to:

Draft