In this article we will see how we can get the leading value of the spin box’s font. Leading value of the text means the distance between two baselines of lines of type. The word ‘leading’ originates from the strips of lead hand-typesetters used to use to space out lines of text evenly. The word leading has stuck, but essentially it’s a typographer’s term for line spacing.
In order to do this we use
leading method with the spin box’s QFontMetrics object.
Syntax : font_metrics.leading()
Argument : It takes no argument
Return : It returns integer.
Below is the implementation
- PyQt5 QSpinBox - Matching font with the System Font
- PyQt5 QSpinBox - How to get the font metrics
- PyQt5 QSpinBox - Getting ascent of the font
- PyQt5 QSpinBox - Getting descent of the font
- PyQt5 QSpinBox - Getting height of font
- PyQt5 QSpinBox - How to get the font of spin box
- PyQt5 QSpinBox - Getting the size of the font
- PyQt5 QSpinBox - Swapping Font
- PyQt5 QSpinBox - Getting the line width of the font
- PyQt5 QSpinBox - How to get the elided text through font
- PyQt5 QSpinBox - Getting the minimum right bearing value of the font
- PyQt5 QSpinBox - Getting Font Info Object
- PyQt5 QSpinBox - Setting font to the whole text
- PyQt5 QSpinBox - Checking if the character is in font
- PyQt5 QSpinBox - Getting the minimum left bearing of the font
- PyQt5 QSpinBox - Getting tight bounding rectangle of the font
- PyQt5 QColorDialog - Getting Font
- PyQt5 QCalendarWidget - Getting Font
- PyQt5 QCalendarWidget - Setting Font
- PyQt5 QColorDialog - Changing Font
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.