mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Use points instead of pixels
This commit is contained in:
parent
d4b1913c1c
commit
c31895018a
@ -331,7 +331,7 @@ void YACReaderFlowGL::paintGL()
|
||||
|
||||
QFont font = painter.font();
|
||||
font.setFamily("Arial");
|
||||
font.setPixelSize(fontSize);
|
||||
font.setPointSize(fontSize);
|
||||
painter.setFont(font);
|
||||
|
||||
painter.setPen(QColor(76, 76, 76));
|
||||
@ -342,8 +342,7 @@ void YACReaderFlowGL::paintGL()
|
||||
|
||||
void YACReaderFlowGL::resizeGL(int width, int height)
|
||||
{
|
||||
float pixelRatio = devicePixelRatioF();
|
||||
fontSize = (width + height) * 0.010 * pixelRatio;
|
||||
fontSize = (width + height) * 0.010;
|
||||
if (fontSize < 10)
|
||||
fontSize = 10;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user