Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
edim_fazlic
Contributor II
Contributor II

Change extensions font-family

Hi,

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?


1 Solution

Accepted Solutions
edim_fazlic
Contributor II
Contributor II
Author

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);

View solution in original post

1 Reply
edim_fazlic
Contributor II
Contributor II
Author

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);