You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across a missing feature while running your code. The word it was processing was, counterintuitive. At first I tought I had a bug so I began debugging it.
` if id == 37:
print(text)
print(words)
while i < len(words):
words[i] = words[i].strip() ## REMOVES SPACES -> " hello " -> "hello"
if words[i] == "":
print(words[i])
print("is empty")
i = i+1
continue
if words[i] == " ":
print(words[i])
print("is empty")
i = i+1
continue
This feels really counterintuitive.
['', 'This', 'feels', 'really', 'counterintuitive.']
is empty
length in pixels: 165 This
remaining in pixels: 381.29999999999995 This
fired remaining while loop again
This feels
fired remaining while loop again
remaining_pixels < 0
length in pixels: 231 really
remaining in pixels: 315.29999999999995 really
fired remaining while loop again
remaining_pixels < 0
length in pixels: 594 counterintuitive.
remaining in pixels: -47.700000000000045 counterintuitive.
length in pixels: 594 counterintuitive.
remaining in pixels: -47.700000000000045 counterintuitive. length in pixels: 594 counterintuitive.
remaining in pixels: -47.700000000000045 counterintuitive.
You should make it a feature where the font scale is scaled down when remaining pixels goes negative.
The text was updated successfully, but these errors were encountered:
I came across a missing feature while running your code. The word it was processing was, counterintuitive. At first I tought I had a bug so I began debugging it.
` if id == 37:
print(text)
print(words)
while i < len(words):
words[i] = words[i].strip() ## REMOVES SPACES -> " hello " -> "hello"
if words[i] == "":
print(words[i])
print("is empty")
i = i+1
continue
if words[i] == " ":
print(words[i])
print("is empty")
i = i+1
continue
What I got then is:
This feels really counterintuitive.
['', 'This', 'feels', 'really', 'counterintuitive.']
is empty
length in pixels: 165 This
remaining in pixels: 381.29999999999995 This
fired remaining while loop again
This feels
fired remaining while loop again
remaining_pixels < 0
length in pixels: 231 really
remaining in pixels: 315.29999999999995 really
fired remaining while loop again
remaining_pixels < 0
length in pixels: 594 counterintuitive.
remaining in pixels: -47.700000000000045 counterintuitive.
length in pixels: 594 counterintuitive.
remaining in pixels: -47.700000000000045 counterintuitive.
length in pixels: 594 counterintuitive.
remaining in pixels: -47.700000000000045 counterintuitive.
You should make it a feature where the font scale is scaled down when remaining pixels goes negative.
The text was updated successfully, but these errors were encountered: