Tiny font and tool bar in Windows 10

Post here questions and problems related to oXygen frameworks/document types.
sderrick
Posts: 217

Tiny font and tool bar in Windows 10

Fri Mar 25, 2016 2:14 am

I'm setting up our SDK Editor to run as a web start application instead of an applet. What a journey!

The editor looks good in Linux(Mint17), OK in Windows 7, horrible in Windows 10. I haven't released it yet for our Mac users to try it.

In Windows 10, everything is TINY, menu bar, menu items, tool bar icons, text in the editor. The Menus, are unusable. They are standard JMenuBar and items in a standard JFrame that wraps the EditorApplet. The Tool bar icons are minuscule and hard to get the mouse icon over the correct one. The Outline side view has normal sized font as does the title bar, but the title bar done by windows so no surprise there. I allow the users to adjust the font size in the editor, though its a pain.

Why is everything so tiny? The display resolution is the same as on all three Os's.

Is there something I can do? Detect windows 10 as the host and increase the apps default font size? Though if I do that what happens to the Outline view? And why is it Ok but everything else is half the point size?

Scott
sderrick
Posts: 217

Re: Tiny font and tool bar in Windows 10

Fri Mar 25, 2016 4:58 am

After further research it appears this may be attributed to the interaction between the graphics driver on my Yoga Pad 3 and Windows 10. Many reports of problems with adobe, java and other non native apps being displayed extremely compared to small native windoze apps.

Still looking for a solution but I'm hopeful this is a corner case.

Scott
adrian
Posts: 2443

Re: Tiny font and tool bar in Windows 10

Fri Mar 25, 2016 11:51 am

Hello,

What version of Oxygen/SDK are you using?
Sounds like a HiDPI scaling problem specific to very high resolution screens. What screen resolution do you have on the Yoga Pad 3?
If it's a HiDPI screen/resolution, even if it's the same on all OSs, the behavior can be significantly different across them (Windows settings can also vary significantly).

Later Edit:
Could you please test with the JavaWebStart launcher from our website. Does it look any better with that?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sderrick
Posts: 217

Re: Tiny font and tool bar in Windows 10

Fri Mar 25, 2016 7:51 pm

Adrian,

The yoga pad can go really high, but it doesn't matter what I set it at. Still tinsy tiny little application. I set the res to the same as my Linux and Windows 7 machines, no change in windows 10 behaviour.

Your webstart app looks good! I downloaded your jnlp to see if there were any obvious differences in your VM args. The huge surprise is the number of libs in my jnlp vs the number you have! I think there are at least twice the number in my jnlp?? And the names are different?

We are using 17.0. I was planning to upgrade after I got everything working, keep the unexpected to a minimum. Whats the chances I could change my pom to pull in 17.1 and it would work out of the box?

Scott
sderrick
Posts: 217

Re: Tiny font and tool bar in Windows 10

Sat Mar 26, 2016 12:59 am

Adrian, I downloaded the 17.1 sdk to try it out. I no see that the webstart editor has just a few lib, where as the SDK has a ton of them. Different packaging I guess but odd. Considering the SDK is a subset of the editor I'd figure it would have fewer?

I ran the 17.1 SDK applet on my Windows 10 yoga pad and it behaves just as mine. Teensy tiny. The resolution was set at max which windows recommends.

Here is a screen shot of the 17.1 sdk applet next to my webstart application, next to your editor webstart, all above firefox. You can see both the sdk applet and my webstart app are small, menu items are tiny, the text in my app is larger becuse I set it larger as the default, but its still to small to edit. THe Editor webstart looks OK though a bit small, Firefox looks fine.

[img]http://tnstaafl.net/images/Screenshot-hi-res.jpg[/img]

Now I reduced the res to 1900x1080. The sdk and my webstart are getting usable, though they are funky. Look at the tabs and the Outline sideview in my webstart. They are way out of proportion to the rest of the app. The sideview in the editor webstart looks odd too, the text looks twice as large as it should.

[img]http://tnstaafl.net/images/Screenshot-low-res.jpg[/img]

Here is my webstart on linux with the resolution set to 1900x1080 . It looks good, everything is balanced, no piece out of proportion with the rest.

[img]http://tnstaafl.net/images/linux1900x1080.png[/img]

So your SDK 17.0 & 17.1 has definite scaling problems on some Windows devices that your Editor Webstart does not.

Scott
alina
Posts: 1

Re: Tiny font and tool bar in Windows 10

Mon Mar 28, 2016 5:02 pm

Hi Scott,

We reproduce the problem, I've logged an issue to investigate this. You'll be notified when this is resolved.

Regards,
Alina
Alina Iordache
<oXygen/> XML Editor
http://www.oxygenxml.com
Dan
Posts: 273

Re: Tiny font and tool bar in Windows 10

Wed Mar 30, 2016 12:25 pm

The problem is caused by oXygen applet not detecting properly the HiDPI settings on Windows - it misses a native library for doing it.
As a workaround you could alter the pom.xml file from the sample applet project, adding:

Code: Select all

      <dependency>
         <groupId>net.java.dev.jna</groupId>
         <artifactId>jna</artifactId>
         <version>4.1.0</version>
      </dependency>
      <dependency>
         <groupId>net.java.dev.jna</groupId>
         <artifactId>jna-platform</artifactId>
         <version>4.1.0</version>
      </dependency>

at the top of the dependencies section.

This problem has been fixed in the current development stream and the fix will be available in the next oXygen version.
sderrick
Posts: 217

Re: Tiny font and tool bar in Windows 10

Wed Mar 30, 2016 6:56 pm

Dan,

thanks for the info. I will try out yoru suggestion and report back..

Scott

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests