Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Setting Typeface #9

Closed
HeyPouya opened this issue Feb 3, 2018 · 10 comments
Closed

Setting Typeface #9

HeyPouya opened this issue Feb 3, 2018 · 10 comments
Assignees

Comments

@HeyPouya
Copy link

HeyPouya commented Feb 3, 2018

hi
is there a way to set typeface for the StepView ?

@shuhart shuhart self-assigned this Feb 4, 2018
@shuhart
Copy link
Owner

shuhart commented Feb 4, 2018

Check out version 1.2.2
You can specify a custom typeface in xml:
app:typeface="@font/roboto_italic
or in java:
stepView.getState().typeface(ResourcesCompat.getFont(context, R.font.roboto_italic).commit();

@HeyPouya
Copy link
Author

HeyPouya commented Feb 4, 2018

thanks.
but could you please change this line :

to someThing unique Like :

to prevent conflict with other libraries?

@shuhart
Copy link
Owner

shuhart commented Feb 4, 2018

Have you missed something?

@HeyPouya
Copy link
Author

HeyPouya commented Feb 4, 2018

:D
yea lots of things I think.
im prety sure I pasted them.

but could you please change this line :
<attr name="typeface" format="reference" />
to someThing unique Like :
<attr name="stp_typeface" format="reference"/>
to prevent conflict with other libraries?

@shuhart
Copy link
Owner

shuhart commented Feb 4, 2018

Yep, I forgot about that. I will just reuse "android:typeface".

@shuhart
Copy link
Owner

shuhart commented Feb 4, 2018

Fixed in 1.2.3

@HeyPouya
Copy link
Author

HeyPouya commented Feb 4, 2018

it works perfectly.
i only saw this after setting typeface : (see the numbers in the circle)
screen shot 2018-02-04 at 11 07 25 pm
screen shot 2018-02-04 at 11 06 53 pm

@shuhart
Copy link
Owner

shuhart commented Feb 4, 2018

Strange. Could you provide a font file you use? I will look into this issue tomorrow.

@HeyPouya
Copy link
Author

HeyPouya commented Feb 4, 2018

IRANSansMobile.ttf.zip
Thanks for your help :)

@shuhart
Copy link
Owner

shuhart commented Feb 6, 2018

Fixed in 1.2.4

@shuhart shuhart closed this as completed Feb 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants