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

Added font-weight support #54

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Added font-weight support #54

wants to merge 4 commits into from

Conversation

cristian-5
Copy link

@cristian-5 cristian-5 commented Oct 21, 2023

Added font-weight support #51 with a note for lighter and bolder which are context related and must be fixed in a future patch (that's why we use a member function rather than an extension on Font.Weight).

Fixed the exhaustive switch warning in MBezierPath as well.

Comment on lines 27 to 29
case "normal": return .regular
case "bold": return .bold
case "bolder": return .black

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's up with these spacings? 😄

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ocd? hahah I'm just a fan of lined-up code

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean any SwiftFormat/SwiftLint or similar tool would start freaking out here 😄

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alr I'll use conventions then

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@msrutek-paylocity I fixed the spacing using swift conventions 🖖

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.

2 participants