Closed hvaldecantos closed 5 years ago
With QFontMetrics(font).lineSpacing())
, we can know the height of a line in the QTextEdit
document.
Now we are using:
It seems that the lineSpacing()
method does not return the height of an entire line (character + some leading space) on monitors with high DPI. On these monitors, it works by using only the heigt()
method.
self.editorHeight = self.height_in_characters * QFontMetrics(font).height()
config.yml