[GH-ISSUE #286] [python] Change text size in draw string from Kandinsky module #122

Open
opened 2026-05-06 13:15:34 +02:00 by BreizhHardware · 1 comment

Originally created by @ImpotStite on GitHub (Oct 7, 2022).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/286

Je propose un changement de la 6eme et dernière option du draw_string en python
N’importe la valeur mise, exeption 0, la police change en se réduisant, la même pour toute valeur, je ne sais pas si c’est un bug ou autre mais je propose que la valeur soit comme la police d’un éditeur de texte. Cela permettrait de faire des titres, sous titres, texte, mettre une certaine hiérarchie.

Originally created by @ImpotStite on GitHub (Oct 7, 2022). Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/286 Je propose un changement de la 6eme et dernière option du draw_string en python N’importe la valeur mise, exeption 0, la police change en se réduisant, la même pour toute valeur, je ne sais pas si c’est un bug ou autre mais je propose que la valeur soit comme la police d’un éditeur de texte. Cela permettrait de faire des titres, sous titres, texte, mettre une certaine hiérarchie.
Author
Owner

@Yaya-Cout commented on GitHub (Oct 7, 2022):

It is not possible to change the font size dynamically because there are only two fonts : the small and the big one. We could add italic fonts, but it will still be the same size. By the way, the value is 0, because the argument is a boolean value (True or False). You can use the large_font and small_font constants from the Kandinsky module. Could you translate this issue to English ?

<!-- gh-comment-id:1271676975 --> @Yaya-Cout commented on GitHub (Oct 7, 2022): It is not possible to change the font size dynamically because there are only two fonts : the small and the big one. We could add italic fonts, but it will still be the same size. By the way, the value is 0, because the argument is a boolean value (True or False). You can use the `large_font` and `small_font` constants from the Kandinsky module. Could you translate this issue to English ?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Upsilon#122
No description provided.