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

Italics added and bold improvised #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

debajyotisarkarhome
Copy link

Added options to italicize text, improvised the bold option too using font selection. By default it'll use a proprietary font, unless explicitly defined by the font-file-path tag. This PR resolves #2

@Horizon733 Horizon733 self-requested a review October 12, 2021 04:55
@Horizon733 Horizon733 added enhancement New feature or request hacktoberfest-accepted pr which are accepted labels Oct 12, 2021
Copy link
Owner

@Horizon733 Horizon733 left a comment

Choose a reason for hiding this comment

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

Just a minor change and we are done. I have already added hacktoberfest accepted but then too, please add changes as mentioned

Comment on lines +90 to +93
"""font_file_exists, message = path_exist(font_file_path, True)
if not font_file_exists:
click.echo(f"Error: {message}")
return
return"""
Copy link
Owner

Choose a reason for hiding this comment

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

We could just use default one's right when the font file is not accessible

Choose a reason for hiding this comment

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

As the default font in PIL cannot be resized, I have added a default font in the click.option itself for the font file path if user doesn't explicitly define a font poth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest-accepted pr which are accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] add different kinds of text formatting
2 participants