From cdc326d566c56c201416c415b34ca96973680209 Mon Sep 17 00:00:00 2001 From: Chris Mekelburg Date: Sat, 21 Sep 2024 17:04:36 -0400 Subject: [PATCH] letter x, final showing all 4 letters Letter X was designed using a function for each cross piece. I felt like with this letter I was getting more used to using the grid and using the sqrt function for the sides. I tried to make the letter just as thick as the other 3, but working on a diagonal complicated this a bit. I would have had to work with an even smaller grid to make the X have a width of 1 unit rather than sqrt(2)*unit, so I ended up leaving it this way and the letters still look the same size when running the proof. --- typeface.py | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/typeface.py b/typeface.py index c2e3d2d..edbd912 100644 --- a/typeface.py +++ b/typeface.py @@ -173,7 +173,37 @@ def draw_letter_w(unit): pass def draw_letter_x(unit): - pass + + def half_x(): + left(45) + forward((3/7)*sqrt(98)*unit) + fly(sqrt(2)*unit) + forward((3/7)*sqrt(98)*unit) + left(90) + forward(sqrt(2)*unit) + left(90) + forward((3/7)*sqrt(98)*unit) + fly(sqrt(2)*unit) + forward((3/7)*sqrt(98)*unit) + left(90) + forward(sqrt(2)*unit) + + fly(unit) + half_x() + left(45) + fly(unit*7) + left(90) + fly(unit) + half_x() + right(135) + fly(unit) + right(90) + fly(8*unit) + right(180) + + + + def draw_letter_y(unit): pass