1 Reply Latest reply: Jun 13, 2017 8:30 AM by Edim Fazlić RSS

    Change extensions font-family

    Edim Fazlić



      I'm unable to change the extensions font-family, even if I marked the font-family as "!important". I have no problems to change the font-color or the font-size, but the font-family is always the same. I need to mention that this problem only appears on SVG text elements, not on plain html text.

      Has someone any idea how to solve this?

        • Re: Change extensions font-family
          Edim Fazlić

          Found a solution after a while.

          I tried dynamically to set the font-family for an object, outside the css file,

          this._item.setAttributeNS(null, "font-family", fontFamily)

          This method, didn't work. The solution is setting the font-family with jquery:

          $(element.item).css("font-family", fontFamily);