Tiny fonts on a 4K screen

1,187 views
Skip to first unread message

Marek Gierliński

unread,
Mar 31, 2015, 5:28:02 AM3/31/15
to igv-...@googlegroups.com
I have recently bought two 4K 24" screens with pixel density of about 185 PPI. I have an Ubuntu box to work with them. Alas, though I can scale system fonts and menus, all the menus and pop-up windows in IGV are tiny. Almost unreadable, which makes IGV almost unusable.

I changed the "default font" in preferences, but it only affected track descriptions.

Could you allow for font scaling in all menus? With more high-density screens coming more and more people will experience this problem.

Marek

Jim Robinson

unread,
Mar 31, 2015, 9:25:44 AM3/31/15
to igv-...@googlegroups.com
I will look into it. We aren't explicitly choosing most of the fonts that aren't scaling for you, they are Java defaults.   Perhaps you could investigate changing Java default fonts? 
--

---
You received this message because you are subscribed to the Google Groups "igv-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/91662641-fa64-46d9-bb6e-1811ff465e10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jim Robinson

unread,
Mar 31, 2015, 10:45:11 AM3/31/15
to igv-...@googlegroups.com
Hi Marek,

I made a quick change that will sett all system fonts to the default font size in the preferences.   It doesn't look great because Java is apparently just pixel-expanding the font,  but perhaps it will be usable now.  You can try this change at

http://www.broadinstitute.org/software/igv/download_snapshot

This is a quick interim fix, not the resolution of the issue.

Jim


Marek Gierliński

unread,
Apr 1, 2015, 4:14:45 AM4/1/15
to igv-...@googlegroups.com
Hi Jim,

That's brilliant! It works very well on menus. The only problem now is overlapping text, like in this example:


But, apart from that, scaled fonts look very well, not pixelated at all. Here is a comparison of the old and new:


Thank you very much for your swift response,
Marek

Jim Robinson

unread,
Apr 1, 2015, 10:09:17 AM4/1/15
to igv-...@googlegroups.com
Thanks for the screenshots.  Yes I know about the problems with the preferences window, the content in the tabs is manually layed out and not font size aware.  I have fixed the first 2 tabs in that regard, and will work my way through the others.

This solution is a bit crude,  it sets all font sizes to the single value specified in the igv preferences, but its preferable to tiny fonts. 

Andrewww3w

unread,
Apr 24, 2017, 11:47:05 AM4/24/17
to igv-help
Hello All,

I have the same problem. To increase computational power, I have bought a new machine with a 4K resolution screen. On this screen IGV is almost unusable because fonts are too small. I have set the default font size in Preferences to Arial 24, which helps a bit with track name fonts, but nothing more. I tried to download the IGVDistribution snapshot.zip at the mentioned linked, but didn't know how to run it (is it a completely new version of the software)?

Any suggestions on solving the problem?

Thanks,

Andrew

James Robinson

unread,
Apr 25, 2017, 1:41:44 PM4/25/17
to igv-help
Its hard to get a grip on this problem as it happens with some high rez screens but not others.  The development team uses mac Retina screens.  

What is your hardware?
What version of Java are your running?
How are you starting IGV?

To run the binary distributions unzip and double-click the "igv.bat" file  (I assume this is a windows machine, if not run  "igv.sh".





To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/88bdb87f-eb44-43ea-8d3f-9c0315c9fb81%40googlegroups.com.

James Robinson

unread,
Apr 25, 2017, 2:13:15 PM4/25/17
to igv-help
Here's one possible solution.   I don't have a Windows machine to test it with, and it involves editing the registry.   I will continue searching for a better solution.



Andrewww3w

unread,
Apr 26, 2017, 11:14:05 AM4/26/17
to igv-help
Hello,

I have an ASUS machine i7 16GB ram, with the latest windows installed.

I am running Jave version jre-8u66-windows-x64.exe (this Java version is required to run other programs).

I start IGV by clicking on a desktop icon (which, very strangely, is not like the icon I have on my old i3; this new icon has no IGV logo). When I click on this icon, a small dos windows open and later I get the IGV window.

PS: I have downloaded and unzipped the IGVDistribution_Snapshot.zip, then clicked on igv.bat, but nothing happens, I get exactly the same screen.

PS PS: there is another problem: I cannot enlarge the left IGV window containing the track names.

Thanks,

Andrew

James Robinson

unread,
Apr 26, 2017, 11:58:09 AM4/26/17
to igv-help
OK,  this is a hard problem.   Its a Java bug,  possibly fixed in Java 9 but that's not certain.   There are some patches suggested in various threads,  I don't have any way to test them as I don't have a high dpi windows machine.    Are you willing to test for us?    If so I will have something to try by the end of the day or tomorrow.

What do you mean you clicked on "igv.bat" and nothing happend?   You should see a black terminal screen,  then after a short delay the IGV window should appear.



To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/c691383f-3df6-43f8-969c-6aa62851af31%40googlegroups.com.

Andrewww3w

unread,
Apr 26, 2017, 3:43:01 PM4/26/17
to igv-help
Thank you Jim,

we are willing to try any solution you might have. igv.bat works as you say, the IGV window appears, however, the fonts size remains the same, so no improvements.

Andrea

James Robinson

unread,
Apr 26, 2017, 7:27:07 PM4/26/17
to igv-help
Andrea,  could you download and try this version?  http://data.broadinstitute.org/igv/projects/downloads/IGV_2.3.92.zip

After unzipping click "igv.bat" as usual.   A black console window will appear, and after a few seconds the app.



To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/7260f4b4-a9f0-4734-af5c-3691cdc14a5b%40googlegroups.com.

Andrewww3w

unread,
Apr 27, 2017, 4:56:48 AM4/27/17
to igv-help
Hello Jim,

this new version you created now works. I have set the font size preferences again to Arial 12 and it looks like it was on my old i3. The only thing is that on a the 4k screen it looks like being a bit "faded" or under standard resolution, but this happens also with other software on 4K. The left column with the track names still remaines frozen (you cannot enlarge it). Overall, it is now usable again.

Thanks a lot!

Andrea

James Robinson

unread,
Apr 27, 2017, 10:32:14 AM4/27/17
to igv-help
Great, thanks for the report.    WRT the track name panel,  I don't recall an option to change the size,  were you able to in previous versions?   I will look into adding an option to do that.

Longer term  I will be migrating the user interface to a different technology  (JavaFX  instead of Swing) that does not have the highDPI problem.   Hopefully that will look sharper.   In the meantime I will post the zip on the downloads page.

To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/7e2dc42f-f5b2-4ce2-a39f-52bad8a85242%40googlegroups.com.

Jim Robinson

unread,
Apr 27, 2017, 11:24:08 PM4/27/17
to igv-help
The Windows download for high res screens is now posted on the Downloads page, and the URL is http://data.broadinstitute.org/igv/projects/downloads/IGV_Win_2.3.92.zip.   Note this differs from the URL you tested, which conflicted with the standard binary download.

Andrewww3w

unread,
Apr 28, 2017, 4:47:46 AM4/28/17
to igv-help
Thank you Jim!

About the track name column, I actually can't recall how it worked on the old i3, but you may be right when you say it isn't an implemented feature.

Thanks again for resolving the issue, IGV is a great program!

Andrew

Malcolm Cook

unread,
Mar 27, 2018, 2:27:12 PM3/27/18
to igv-help
I am having similar legibility issues running under linux - namely the font size in the track attribute display is very hard to read.  Do you have any suggestions for improvement here?

Thanks,

Malcolm Cook

Breda Genetics srl

unread,
Mar 28, 2018, 4:22:44 AM3/28/18
to igv-...@googlegroups.com
Hi Malcolm,

maybe this can help you: this is the answer I got from IGV some months ago:

The Windows download for high res screens is now posted on the Downloads page, and the URL is http://data.broadinstitute.org/igv/projects/downloads/IGV_Win_2.3.92.zip.   Note this differs from the URL you tested, which conflicted with the standard binary download.

Best wishes,

Andrea


--

---
You received this message because you are subscribed to a topic in the Google Groups "igv-help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/igv-help/s59_RTJXoso/unsubscribe.
To unsubscribe from this group and all its topics, send an email to igv-help+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/3f9efea5-dab2-4abf-93d5-95b6b0249d2b%40googlegroups.com.

Malcolm Cook

unread,
Mar 31, 2018, 12:15:43 AM3/31/18
to igv-...@googlegroups.com
Thanks for the suggestion Andrea, but I am not experiencing the issue on a Windows machine, but rather Linux...

~ Malcolm Cook

James Robinson

unread,
Mar 31, 2018, 12:18:00 AM3/31/18
to igv-help
There is currently no solution for linux under Java 8, other than reduce your screen resolution.   We are working on support for Java 9,  where this bug <might> be fixed,  but it is a non-trivial task and I can't give you an ETA at this time.



Jim Robinson

unread,
Apr 3, 2018, 2:31:47 PM4/3/18
to igv-help

Malcolm et al,  could someone with a Linux machine try this  (change 2 to whatever your scaling factor is)?

java -Dsun.java2d.uiScale=2 -jar some_application.jar


Malcolm Cook

unread,
Apr 3, 2018, 3:15:26 PM4/3/18
to igv-...@googlegroups.com
Yes

I see no difference between entering  " -Dsun.java2d.uiScale=1" or " -Dsun.java2d.uiScale=8" 
as the value in  "IcedTea-Web Control Panel" > "JVM Settings" 

I also tried inserting those lines into the call to `java` found in igv.sh from a fresh download of binary distribution, but, still no difference in as far as I can see

In all cases I loaded a bam file and a sample attributes file and the appearance seemed identical in all regards.

I am running on CentOS7 if that matters.

Cheers,

Malcolm

~ Malcolm Cook

--

---
You received this message because you are subscribed to a topic in the Google Groups "igv-help" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/igv-help/s59_RTJXoso/unsubscribe.
To unsubscribe from this group and all its topics, send an email to igv-help+unsubscribe@googlegroups.com.

Malcolm Cook

unread,
Apr 3, 2018, 3:43:12 PM4/3/18
to igv-...@googlegroups.com

BTW, all this said, I find that with "IGV > Preferences > General > Default Font > Change"  I can change font face and font size, and although the change to the face is reflected immediately in the display of both track names and sample attributes, the change to the size is NOT reflected until I restart IGV, and then only in the track name, not in the sample attributes at all, which is where I am having legibility issues.

Is it possibly because they are rendered differently due to their being rotated?

~Malcolm

~ Malcolm Cook

James Robinson

unread,
Apr 3, 2018, 4:21:20 PM4/3/18
to igv-help
I'm not sure, but changing font size is not the solution for highDPI screens.   The property setting was worth a try. 

--

---
You received this message because you are subscribed to the Google Groups "igv-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to igv-help+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/igv-help/CAAAQmVYZ7vpjVSmYc4Qb1LFjfF86GnBon4vE1g4nZhOSo8yCyQ%40mail.gmail.com.

Malcolm Cook

unread,
Apr 3, 2018, 4:42:47 PM4/3/18
to igv-...@googlegroups.com
Hi James, 

My fault for chiming in on the wrong thread.  

My display is not high DPI.  

If that matters.

The issue is that I have some control over font family / size for name panel but none for attribute names which appear quite small and barely legible.

Sorry for the confusion, and thanks for your helps.

~Malcolm

~ Malcolm Cook

James Robinson

unread,
Apr 3, 2018, 4:44:01 PM4/3/18
to igv-help
If its a 4k screen with tiny fonts its high dpi

Malcolm Cook

unread,
Apr 3, 2018, 4:54:21 PM4/3/18
to igv-...@googlegroups.com
Hi Jim,

The original poster on this thread had 4K.  

I don't.

My screen is Lenovo 24" with max resolution of 1920x1200 

So perhaps my issue is different, but I still have one.

Perhaps my fonts are not as tiny as the OP, but I find them VERY SMALL and hard to read at  1920x1200 .  Not impossible.  Just hard.  And only in the vertical text displaying sample attributes.


~ Malcolm Cook

James Robinson

unread,
Apr 3, 2018, 4:56:52 PM4/3/18
to igv-help
The "4K" doesn't refer to logical pixels  (e.g. 1920x1200).    Still, you might have a different issue,  I'm not familiar with that display.

Reply all
Reply to author
Forward
0 new messages