Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a different method to estimate the size which take Font type into account #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

maniramezan
Copy link

Using custom font mess up the ratio label and it shows truncated text. You can try it by using following code in the sample project:

var style = styleList[seletedStyleIndex].1
style.ratioLabelFont = UIFont(name: "Lato-Bold", size: 18.0)
progressView = progress.showAtRatio(frame: getRect(), display: displayFlag, style: style)
progressView?.layer.cornerRadius = 12.0
view.addSubview(progressView!)

@maniramezan maniramezan changed the title Use Use a different method to estimate the size which take Font type into account Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant