How is 'upright' property defined? #642
Replies: 1 comment 2 replies
-
Hi @JankowskiKamil, and great question. The As you'll see from that part of the code, (a, b, c, d, e, f) = self.matrix
self.upright = 0 < a * d * scaling and b * c <= 0 The |
Beta Was this translation helpful? Give feedback.
-
Hello,
I use this amazing library and sometimes have a problem with vertical / not upright chars. Is there any chance to get chars rotation value? I suspect that in cases where upright property is miscalculated, the rotation is equal to 89.99999... not 90.
I try to find the problem and wonder if this value is based on: upright = True if rotation == 90 else False, but I can't find the line of code responsible for this.
Unfortunately, I can't send a PDF file
Beta Was this translation helpful? Give feedback.
All reactions