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
While working with the library I noticed some of my icons were being clipped/cropped at the edges. Through some experimentation I got it working by setting respectFontBounds to false and paddingDP to 0. I assume this isn't intentional/expected though.
I have created a small sample project using the crown icon from FontAwesome demonstrating the behaviour using Compose vs Views vs Compose with respectFontBounds set to false.
I had a quick dig around in IconicsPainter and the pathBounds are larger than the viewBounds, setting respectFontBounds impacts the textSize instead of the pathBounds though.
About this issue
While working with the library I noticed some of my icons were being clipped/cropped at the edges. Through some experimentation I got it working by setting respectFontBounds to false and paddingDP to 0. I assume this isn't intentional/expected though.
I have created a small sample project using the crown icon from FontAwesome demonstrating the behaviour using Compose vs Views vs Compose with respectFontBounds set to false.
I had a quick dig around in IconicsPainter and the pathBounds are larger than the viewBounds, setting respectFontBounds impacts the textSize instead of the pathBounds though.
https://github.com/crowleysimon/IconicsClipDemo
Details
Checklist
The text was updated successfully, but these errors were encountered: