RPTools.net

Discussion and Support

Skip to content

It is currently Tue Sep 26, 2017 2:32 am 




Forum rules


Posts that do not conform to the READ ME FIRST sticky thread are subject to deletion.



Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3  Next

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12102
Location: Tampa, FL
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Sat Aug 20, 2016 2:29 pm 
What happens if the manifest file is there and the system doesn't have a HiDPI monitor? I guess someone with a regular resolution monitor would need to test this.

I'm wondering if future builds should simply include this file until such time that the Java folks have some kind of solution worked out... Figuring out the directory to put it into could be a pain. (Hm, looks like JDK9 might already have this solved! It would be interesting to know if a Windows user running Java 9 could fire up MapTool and see what it looks like!)

One other option...

This page has some Java 8 code that looks through all entries in the Look&Feel and set the font size to 24. That code as written wouldn't work right if you have different sizes configured for different things in your L&F; we'd have to change it to multiply the existing size instead.

However, it might be an option for us. We could add a command line parameter that indicates whether or not to increase the size, probably something with yes/no/auto options. Then radio buttons added to the launcher would complete the process.


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Fri Oct 12, 2012 4:09 pm
Posts: 28
Location: Camberley, UK
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Sun Aug 21, 2016 2:42 pm 
Don't forget that you still have to manually create the registry entry, so adding it to the install file without the registry entry shouldn't have an effect.

_________________
Raileth


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9388
Location: Netherlands
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Sun Aug 21, 2016 4:55 pm 
here you go. The reg file you need for the change. double click it to install.
for good measure I've added the manifest files as well.
The manifest files thus go in the directory where you find java.exe and javaw.exe
These you can find by
1. typing %appdata%\JWrapper-MapTool\ in the address bar of windows exploder.
2. then you type in the search box java.exe
3. on the result: right mouse click: open file location: there you put the manifest files.


manifest.zip [1.61 KiB]
Downloaded 82 times

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Fri Mar 28, 2008 11:30 pm
Posts: 1866
Location: Layfayette Hill, PA
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Tue Aug 23, 2016 9:31 am 
AWESOME!

This is an even better solution than the theme tweak! My eyes thank you!

_________________
D&D3.5 / Pathfinder Framework


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9388
Location: Netherlands
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Tue Aug 23, 2016 9:34 am 
@Azh. I think you can make this (=manifest files) part of the jwrapper install. They are 'dorment' as long as you don't run the reg file.

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12102
Location: Tampa, FL
 Post subject: Re: Fonts unreadably small on high res monitorsange
PostPosted: Tue Aug 23, 2016 9:26 pm 
So if someone does the registry change and then wants to back it out, can you also create the opposite version that will delete it for them? We had (have?) something like that for the entries that MT currently uses to store preferences...

Since this is simply dropping files into a folder, I would think it should make it into the next gradle build. I'll need to get these checked in so that they can be merged to the main repo.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9388
Location: Netherlands
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Wed Aug 24, 2016 2:12 am 
Here you go. An install and uninstall for the reg.


Manifest2.zip [1.82 KiB]
Downloaded 75 times

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Top
 Profile  
 
 Offline
Kobold
 
Joined: Mon Dec 05, 2016 1:50 am
Posts: 7
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Mon Dec 05, 2016 5:23 pm 
Alright, so I seem to be doing something WRONG.

I have placed the .manifest files in my standard JDK install (when I install Java, I do a synchronized JDK/JRE install), and that didn't work with both MT 1.4.0.5 and MT 1.4.1.7. I then grabbed the JWrapper version for amd64 (aka x64), ran the EXE, and then dropped the .manifest files into %appdata %\JWrapper-MapTool\JWrapper-Windows64JRE-00044487682-complete\bin, and that didn't work EITHER. Granted, I only did the JWrapper version for MT 1.4.1.7, so who knows.

OS is Win7 Pro SP1 x64. Standard JDK/JRE version is 8u112, obviously unimportant for JWrapper.

For those who commented on page 1, YES, the reason this is an issue is because no Swing Look&Feel themes support High DPI settings. However, JavaFX 8 DOES support High DPI settings (and I can attest to this as I've started converting my own Swing apps to JavaFX for this very reason).

If someone can let me know what is going on and what I'm doing wrong, that'd be awesome. I run the MT server for my group, so if I need to change MT versions, I can do so. For reference, screen in question is at a resolution of 3440x1440 and Win7's custom DPI is at 200%.

Thanks in advance for helping me figure out what's going on here.

Also, not sure if Swing will ever support High DPI settings. I can confirm that JavaFX as of 8u112 does however. The unfortunate thing is that there is no easy way to switch to JavaFX, so MT is kinda stuck using this workaround for now it seems.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9388
Location: Netherlands
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Mon Dec 05, 2016 5:39 pm 
well the next dev version will have the manifest abd reg integrated. but for now, did youmrun the reg update?

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
 Offline
Kobold
 
Joined: Mon Dec 05, 2016 1:50 am
Posts: 7
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Mon Dec 05, 2016 6:06 pm 
wolph42 wrote:
well the next dev version will have the manifest abd reg integrated. but for now, did youmrun the reg update?

The reg file I ran contained the following reg keys:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide]
"PreferExternalManifest"=dword:00000001

And no, after rerunning it about five seconds ago, still no luck for the JWrapper build.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9388
Location: Netherlands
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Mon Dec 05, 2016 6:27 pm 
In that case try the nerps dev. It's mentioned in one of the recent topics

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1661
Location: Chicagoland
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Mon Dec 05, 2016 6:31 pm 
Strange. Not sure what's going on then. I assume you tried a reboot as well? (for me, Windows 10, I don't need to reboot but dunno, maybe windows 7 is touchy?)

And assume "Disable display scaling on high DPI settings" is unchecked for the shortcut? And are you using the Start menu shortcuts from the windows menu? And assume the Launcher is still set to use the JWrapper JRE?

If you want to try my version, it's updated to Java 1.8_112 and manifest files are baked in.

If all else fails, do a Uninstall (Start Menu - MapTool -> Uninstall MapTool) and reinstall my version and give it a test (maptool.nerps.net) (note: to change the setting in the Launcher you have to run as admin, but you shouldn't even need to bother with this as you already ran the registry setting, so it should show as checked already)

_________________
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
More information here: MapTool Nerps! Fork | TokenTool Nerps! Fork
Custom TokenTool (version 1.0b33): TokenTool.exe


Top
 Profile  
 
 Offline
Kobold
 
Joined: Mon Dec 05, 2016 1:50 am
Posts: 7
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Mon Dec 05, 2016 6:48 pm 
@JamzTheMan: I honestly do not remember if a reboot occurred at some point. However, if the fix is Registry Key-specific, a reboot [i[shouldn't[/i] be required. (I use a Command Prompt Registry hack to have an equivalent to an 'automatic file' for CMD.exe, and that enables itself the instant the Registry key exists, for example.)

I don't typically use Start Menu, unless I'm using Start Search. In this instance, I was literally double-clicking on the executable inside Windows Explorer ((what's known as File Explorer in Win10).

I'll test out the custom build and see if that works.

Also, yeah, I obviously never disable DPI scaling, but thanks for making a point to ensure it wasn't checked.

(Side Note: Right now, I typically manually execute the JAR file via CMD.exe for 1.3.b91 due to Command Prompt being the easiest on my super-horrid eyes. If the custom MT defaults to the manifests, I hope I can just execute the JAR file like that...)

EDIT: Uninstalled, installed the custom build ( 1.4.3.8 ), rebooted, and still impossibly small fonts. I even did "Run as Administrator" on the EXE and double-checked the Registry key was enabled. Sigh. I honestly don't know what's up. I might try this on my Win10 box later tonight to make sure this isn't just Win7 being a pain (especially since this is an older install of Win7).

Thanks for the help.

EDIT 2: A thought occurred to me. Does the High DPI support also support Windows DPI scaling (as in Control Panel>Display)? I ask as that's the DPI support I really need.


Top
 Profile  
 
User avatar  Offline
Great Wyrm
 
Joined: Mon May 10, 2010 11:59 am
Posts: 1661
Location: Chicagoland
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Mon Dec 05, 2016 11:11 pm 
Honestly not sure what's going on here. I don't have a Win7 box and haven't used one in a few years...

For Windows 10, the setting is now under Settings -> Customize your display -> Change the size of text, apps, and other items xxx% Windows has made changes with DPI settings in every version so far it seems, not sure if there is more than one place to change it in Win7?

As far as command prompt starting MT, technically, yes. It's still just a JAR. Obviously it would use whatever java you specify (vs jWrapper choosing it's own installed JRE) so you would have to control that yourself.

And the reason I asked re: startmenu, technically the .exe you download is just meant to be the "install". If you run it again, it does some checks and if nothing changed, it doesn't "reinstall" and shows you the popup window with icons for launcher/mt/tokentool. If you use the shortcuts created in the start menu, it launches the apps directly. It's only a small difference but one none-the-less.

At this point, I can only assume something special on your win7 machine may be interfering. Have you tried one of your other swing programs? (the manifest affects the JRE so any java launched using that JRE would be DPI aware). Let me know how your Windows 10 test goes...

_________________
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
More information here: MapTool Nerps! Fork | TokenTool Nerps! Fork
Custom TokenTool (version 1.0b33): TokenTool.exe


Top
 Profile  
 
 Offline
Kobold
 
Joined: Mon Dec 05, 2016 1:50 am
Posts: 7
 Post subject: Re: Fonts unreadably small on high res monitors
PostPosted: Tue Dec 06, 2016 12:52 am 
So...I did the following on Win10 build 14393 (aka the "Anniversary Update"), in the listed order (apparently I can't figure out the BBCode for a numbered list):

  • Installed the reg key
  • Rebooted (Start > Power > Restart)
  • Installed Nerps Custom Maptool 1.4.3.8
  • Navigated to %appdata%\JWrapper-Maptool, and executed the EXE by right-clicking and then clicking "Run as Administrator".
  • Ensured the Reg key was enabled in the "Troubleshoot" menu.
  • Clicked "Launch Maptool" at bottom of launcher.

...and BAM! IT WORKS!!!!!! :D

So, yeah, looks like my Win7 PC has gotten (after 3 years and a new SSD...) to the point where something's mucked up somewhere. It could just be because my Win7 setup's been running for a year whereas the Win10 PC is almost brand-spanking new.

Either way, looks like my group's MT server will be using the custom MT build until RPTools' MT distro incorporates the manifests internally in the build.

Sincere apologies for all the complaining earlier and sincere thanks for building the manifests into a custom distro of MT.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3  Next

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





cron

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman