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
When using measure_text, it includes any spacing applied to the final letter. This is a pretty minor problem until you start working at higher values for scale and spacing.
As a crude example, consider a spaced out string of 'Pimoroni': as things currently stand, the function will measure P i m o r o n i
(with the trailing space), while a more useful measure (for things like centering) would be P i m o r o n i
(sans trailing space).
I thought I'd raise an issue for a sanity check before I actually starting changing the code :-)
The text was updated successfully, but these errors were encountered:
When using
measure_text
, it includes any spacing applied to the final letter. This is a pretty minor problem until you start working at higher values forscale
andspacing
.As a crude example, consider a spaced out string of 'Pimoroni': as things currently stand, the function will measure
P i m o r o n i
(with the trailing space), while a more useful measure (for things like centering) would be
P i m o r o n i
(sans trailing space).
I thought I'd raise an issue for a sanity check before I actually starting changing the code :-)
The text was updated successfully, but these errors were encountered: