Open theapache64 opened 5 years ago
+1
Also having this issue! I'm using a default font specified as suggested in the README
. But for buttons I have created a new style that uses the fontPath="fonts/my-other-font.tff"
(not the same as the default font) attribute. For some reason the buttons still use the default font and not the font specified by fontPath
.
Specifying the fontPath
attribute directly on the element in the layout works, but not when specifying it in styles.xml
I did some experimenting and found that if I specify the style directly on the element on the layout, the correct font is applied. But if I just rely on the materialButtonStyle
in my theme and don't explicitly set the style on each button it doesn't work.
Hey, this might not be a library issue, but most probably mine.
I've set the
fontAttr
like thisbut the font's not getting changed for the button, (
textSize
attr works). (Note: If i set thefontPath
attr directly to the widget,it works. but i want to do it viastyle.xml
) What am i doing wrong?