{"id":1412,"date":"2020-05-01T09:46:36","date_gmt":"2020-05-01T08:46:36","guid":{"rendered":"https:\/\/seegras.discordia.ch\/Blog\/?p=1412"},"modified":"2020-05-10T07:39:27","modified_gmt":"2020-05-10T06:39:27","slug":"making-xpdf-usable-on-hidpi-with-xresources","status":"publish","type":"post","link":"https:\/\/seegras.discordia.ch\/Blog\/making-xpdf-usable-on-hidpi-with-xresources\/","title":{"rendered":"Making xpdf usable on HiDPI with .Xresources"},"content":{"rendered":"<p>I now have a 4K-screen, and immediately some programs became unusable. Everything KDE just worked. URxvt and XTerm just needed an OpenType font specified instead of the old &#8220;fixed&#8221; one.<\/p>\n<p>Like this:<\/p>\n<pre>xterm*faceName: Monospace\nxterm*faceSize: 10\n<\/pre>\n<p>and this<\/p>\n<pre>URxvt.font:     xft:bitstream vera sans mono:size=14:antialias=true\nURxvt.boldFont: xft:bitstream vera sans mono:bold:size=14:antialias=true\n<\/pre>\n<p>But some  were more elusive, most notably, because they&#8217;re badly documented on the net, and information is difficult to find because the motif-toolkit is very ancient. One of them is xpdf. Whose UI sported tiny fonts.<\/p>\n<p>But I managed to produce a somewhat decent .Xresources (either put them into .Xdefaults; or put them into .Xresources and merge in via xrdb -merge .Xresouces).<\/p>\n<p>The font really needs to be specified in the old fontList way, and I couldn&#8217;t find out how to make it use a modern OpenType font.<\/p>\n<p>The rest is mostly to turn off superfluous borders and heavy shadows.<\/p>\n<pre>Xpdf*fontList: -*-lucida-medium-r-*-*-20-*-*-*-*-*-*-*\nXpdf*XmText.background: #ffffff\nXpdf*XmTextField.background: #ffffff\nXpdf*XmList.background: #ffffff\nXpdf*GraphEdit.background: #ffffff\nXpdf*shadowThickness: 1\nXpdf*borderThickness: 0\nXpdf*?*arg*shadowThickness: 1\nXpdf*?*arg*borderThickness: 0\nXpdf*?*buttons*shadowThickness: 1\nXpdf*?*buttons*borderThickness: 0\nXpdf*XmToggleButton*shadowThickness: 0\nXpdf*XmToggleButton*borderThickness: 0\nXpdf*menubar.shadowThickness: 0\nXpdf*menubar.borderThickness: 0\nXpdf*XmMenuShell*XmTearOffButton*ShadowThickness: 2\nXpdf*main_window.?.borderThickness: 0\nXpdf*main_window.shadowThickness: 0\nXpdf*cutCopyPasteBindings: KDE\nXpdf*selectAllBindings: KDE\nXpdf*buttonColorKey: c\nXpdf*FlatButtons: on\n<\/pre>\n<p>And you especially want it to start in a decent size. You can set this in .pdfrc, but this replaces it:<\/p>\n<pre>Xpdf*initialZoom: 200\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I now have a 4K-screen, and immediately some programs became unusable. Everything KDE just worked. URxvt and XTerm just needed an OpenType font specified instead of the old &#8220;fixed&#8221; one. Like this: xterm*faceName: Monospace xterm*faceSize: 10 and this URxvt.font: xft:bitstream vera sans mono:size=14:antialias=true URxvt.boldFont: xft:bitstream vera sans mono:bold:size=14:antialias=true But some were more elusive, most notably, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,93],"tags":[110,111,107,109,108],"class_list":["post-1412","post","type-post","status-publish","format-standard","hentry","category-computers","category-terminal","tag-hidpi","tag-motif","tag-x11","tag-xpdf","tag-xresources"],"_links":{"self":[{"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/posts\/1412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/comments?post=1412"}],"version-history":[{"count":5,"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/posts\/1412\/revisions"}],"predecessor-version":[{"id":1418,"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/posts\/1412\/revisions\/1418"}],"wp:attachment":[{"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/media?parent=1412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/categories?post=1412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seegras.discordia.ch\/Blog\/wp-json\/wp\/v2\/tags?post=1412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}