{"id":44,"date":"2018-09-01T10:29:18","date_gmt":"2018-09-01T08:29:18","guid":{"rendered":"http:\/\/www.tomvst.be\/blog\/?p=44"},"modified":"2018-09-01T10:29:18","modified_gmt":"2018-09-01T08:29:18","slug":"overly-large-menu-fonts-with-java-10-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.tomvst.net\/blog\/2018\/09\/overly-large-menu-fonts-with-java-10-in-ubuntu\/","title":{"rendered":"Overly large menu fonts with java 10 in Ubuntu"},"content":{"rendered":"<p>I&#8217;m running Ubuntu 16.04. In 18.04, the default java install will become Java 10, so for an upgrade project I installed it on my machine. Since I read Netbeans 8.2 isn&#8217;t compatible with Java 10, I upgraded it as well to Netbeans 9.0<\/p>\n<p>&nbsp;<\/p>\n<p>Unfortunately, in Netbeans 9.0, the font used by the GUI (such as for the Menu bar) was HUGE, actually too large to be usable in practice.<\/p>\n<p>&nbsp;<\/p>\n<p>Having spent considerable time looking on forums, trying a lot of additions to my netbeans.conf file, none was of any help unfortunately.<\/p>\n<p>&nbsp;<\/p>\n<p>Then, I stumbled accross this bug:\u00a0<a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/openjdk-lts\/+bug\/1765914\">Java windows and fonts are huge running in openjdk-11-jre<\/a>, which eventually allowed me to solve the issue.<\/p>\n<p>&nbsp;<\/p>\n<p>On my machine, executing the command\u00a0<strong>dconf read \/com\/ubuntu\/user-interface\/scale-factor<\/strong> yielded:<\/p>\n<pre>{'eDP-1': 16, 'DP-1': 8}<\/pre>\n<p>That 16 scale factor is actually the source of these huge fonts. To change it, do the following:<br \/>\n&nbsp;<br \/>\n1. First, export your dconf settings into an editable format<\/p>\n<pre>dconf dump \/ > dconf-settings.ini<\/pre>\n<p>2. Now edit the exported dconf-settings.ini with your favorite editor. Specifically, find this line and change it into:<\/p>\n<pre>scale-factor={'eDP-1': <strong>8<\/strong>, 'DP-1': 8}<\/pre>\n<p>3. Last thing to do, is to re-import this modified settings again:<\/p>\n<pre>dconf load \/ < dconf-settings.ini<\/pre>\n<p>&nbsp;<\/p>\n<p>It did cost me some time, so I wanted to share this solution to help out someone else...<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m running Ubuntu 16.04. In 18.04, the default java install will become Java 10, so for an upgrade project I installed it on my machine.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,2],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-java","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.tomvst.net\/blog\/wp-json\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tomvst.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tomvst.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tomvst.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tomvst.net\/blog\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":6,"href":"https:\/\/www.tomvst.net\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/www.tomvst.net\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions\/50"}],"wp:attachment":[{"href":"https:\/\/www.tomvst.net\/blog\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tomvst.net\/blog\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tomvst.net\/blog\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}