You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but the font's not getting changed for the button, (textSize attr works).
(Note: If i set the fontPath attr directly to the widget,it works. but i want to do it via style.xml)
What am i doing wrong?
The text was updated successfully, but these errors were encountered:
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 the
fontPath
attr directly to the widget,it works. but i want to do it viastyle.xml
)What am i doing wrong?
The text was updated successfully, but these errors were encountered: