Skip to content

Update epd.py #42

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

Closed
wants to merge 1 commit into from
Closed

Update epd.py #42

wants to merge 1 commit into from

Conversation

ladyada
Copy link
Member

@ladyada ladyada commented Oct 20, 2020

add size to text!

add size to text!
@ladyada ladyada requested a review from evaherrada October 20, 2020 18:04
@@ -289,29 +289,29 @@ def line(self, x_0, y_0, x_1, y_1, color): # pylint: disable=too-many-arguments
"""Draw a line from (x_0, y_0) to (x_1, y_1) in passed color"""
self._color_dup("line", (x_0, y_0, x_1, y_1), color)

def text(self, string, x, y, color, *, font_name="font5x8.bin"):
def text(self, string, x, y, color, *, font_name="font5x8.bin", size=1):
"""Write text string at location (x, y) in given color, using font file"""
Copy link
Member

Choose a reason for hiding this comment

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

Please add a sentence about size to the comment. In particular, what are the units?

@ladyada
Copy link
Member Author

ladyada commented Oct 20, 2020

going to do this in a proper branch

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