After updating to TeXstudio 2.9.4 I have run into display scaling issues when using the program on an external monitor. On my main desktop, the program looks the same, but then upon moving it to the external monitor the scaling does not adjust as it used to. When I click on a line of text in a .tex file, the scaling of that line changes but not the rest of the document. Attached is a screen capture of the issue.
what OS are you using ?
Screenshot looks like windows.
It may be related to [bugs:#534].
Related
Bugs: #534
Last edit: Tim Hoffmann 2015-03-29
I have just tried TeXStudio for the first time and I have a similar problem. Running 2.9.4 on Windows 8.1 x64 with two screens: main screen HD at 100% scaling; secondary screen 2100x1400 at 150% scaling (the secondary screen is the Surface Pro 3 internal screen). Window on main screen looks fine. When dragged across to the secondary, it's a disaster. Screenshot from the secondary attached.
Notice that the screenshot should be shrunk down by 2/3, so that the window title bar, menu and toolbar icons are tiny since they are rendered at the standard 100%, in addition to the fonts being a mixture of rendered at 100% and rendered larger but with wrong spacing (e.g. menu bar).
All the font scaling in highlighting is at 100%.
i have seen an article which mentions that two screens with different dpi setting are supported since qt 5.4 ...
which qt is used for txs 2.9.4 ?
The default windows version of TXS is built with Qt 5.4.1. Did the article mention anything that one has to take extra care in the code if dpi settings vary across the screens?
Some people have requested a Qt4 build. So this is available as well, but users would have to explicity choose it from the download section.
http://doc.qt.io/qt-5/highdpi.html
I am using the qt5.4 standard build.
I have now detached the HD screen and have just a single screen scaled at 150%. TS looks mostly good, scaling correctly, apart from the toolbar icons which are small. The one aspect that isn't quite right is that the PDF internal previewer shows the PDF unscaled, i.e. the 100% zoom corresponds to 2/3 of the desired size.
Also the Preview tab in the preferences is not scaled. I've attached a screen grab.
Edit: I've just noticed that in the advanced setting the dpi of the screen and the default zoom can be changed. This works well on a single screen with a fixed DPI, but with multiple screens with different DPIs it cannot adjust dynamically.
Last edit: bingomaster 2015-04-01
hg 5035 (2808f41aa50d) fixes the preview tab.
Different scaling on multiple monitors is a feature new to Win 8.1. Since I don't have that available for tests, it's very difficult to debug. Additionally there's a known Qt bug concerning per-monitor dpi settings. I assume that at least part of the problems come from there.
As a workaround, you may start TXS with the command line option
-platform windows:dpiawareness=1. This enforces the same dpi for all monitors. While it may not be optimal for the screen resolution, at least it ensures a consistent size of all GUI elements with respect to each other.This was my ticket, sorry for not creating an account to post. However, as other people had guessed I am running Windows 8.1, on Surface Pro with different monitor scaling. I found that using this version of TeX Studio, the scaling issues go away:
TeXstudio 2.8.8 (hg 4828+:0a999280f5cb+)
Using Qt Version 5.3.1, compiled with Qt 5.3.1 R
Any later version has the same issues as posted above. Please let me know if I can help in any other way. Thanks for the replies!
We'll have to wait for the above Qt bug to be fixed.
Apart from that, the above workaround should result in the old behavior of Qt 5.3.*. Instead of specifying the commandline argument, you may alternatively place a file qt.conf next to
texstudio.exewith the following content:I had the same problem, and seem to have a simple solution:
(TeXstudio 2.12.2, Using Qt Version 5.6.2, compiled with Qt 5.6.2 R)
Have an Acer ultrabook, Windows 10, and a new 4K separate monitor. Everything works fine in single-display modes, but in “extend” mode TeXStudio adapts the scaling to the Acer screen and it’s messed up on the 4K screen.
Solution: In the “Display settings” options on Windows (accessed e.g. by right-clicking on the desktop), the “Scale and layout” zoom factor needs to be the same thing on both screens. (Access the different settings for the different screens by clicking on the screen number in the diagram at the top.)
My Acer has a 2560x1440 screen and the “(Recommended)” scale was 200%, which is a good scale.
My 4K monitor has a 3840x2160 screen and the “(Recommended)” scale was 150%. This was a bit small, but OK. Anyway TeXStudio only works on the Acer screen with these settings. If I change the 4K to 200% to match the Acer, TeXStudio works great on both monitors (despite different resolutions).
I find 200% on the 4K to be a better scale factor than 150% anyway, so I can’t complain.
There is an issue when using multiple screens with different magnifications: [bugs:#1506]
The current version of TXS (2.12.6) has a partial fix. It correctly handles different magnifications as well if you switch off the line cache https://sourceforge.net/p/texstudio/bugs/1506/#dc7c.
Related
Bugs: #1506
I encountered the same issue and one solution that appears to have worked is that I modified the TexStudio Properties to Run this program in compatibility mode for Windows 8. The detailed instructions are: Click on Windows Start Menu, Click on All Apps, Find the TexStudio Icon, Right-Click and select More>Open File Location. Right Click on the Icon and select Properties. Select the Compatability Tab and Under the Compatability Mode check the "Run this program in compatability mode for:" and if necessary use the drop-down to select Windows 8. So far it seems to work just fine.
If you're running a version of this program older than 2.12.8, don't bother to upgrade. The bug only becomes WORSE! Now the text in the editor overlaps itself if you you're using multiple screens with different resolution/magnification. It only displays well on the screen with the highest resolution/magnification.
Luckily, William DeShazers solution still works.
None of your solution worked... but I tried to run it in admin. mode and it works properly, but only in admin. mode {I have no idea why :/}
Same problem. Text severly mangled using 2.12.6. Tim Hoffman's solution worked nicely.