harry-g / fairpos

Automatically exported from code.google.com/p/fairpos
0 stars 0 forks source link

Font size too small #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Font size is too small for older people, which are most of the volunteers 
working in fairtrade shops

Original issue reported on code.google.com by harald.g...@gmail.com on 4 Oct 2011 at 6:59

GoogleCodeExporter commented 9 years ago

Original comment by harald.g...@gmail.com on 4 Oct 2011 at 7:07

GoogleCodeExporter commented 9 years ago

Original comment by harald.g...@gmail.com on 4 Oct 2011 at 7:07

GoogleCodeExporter commented 9 years ago

Original comment by harald.g...@gmail.com on 26 Nov 2011 at 9:12

GoogleCodeExporter commented 9 years ago
Added a screenshot to show where the font sizes are too small.
E.g. in articles bought the lines would offer space for bigger fonts.
All based on Swing-Theme "Metal".
I found no better theme, Metal seems a good starting point.
I propose to copy and modify Metal theme, then see where the UI might need 
rework to fit a bigger font.

Original comment by harald.g...@gmail.com on 28 Jan 2012 at 3:53

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by harald.g...@gmail.com on 28 Jan 2012 at 8:02

GoogleCodeExporter commented 9 years ago
giving to Harald - issues 1 & 28 would be best solved by setting OpenbravoPOS 
to "Windows" skin and setting theme & font size in windows

Original comment by benes.vi...@gmail.com on 30 Jan 2012 at 7:52

GoogleCodeExporter commented 9 years ago

Original comment by harald.g...@gmail.com on 13 Mar 2012 at 9:33

GoogleCodeExporter commented 9 years ago

Original comment by harald.g...@gmail.com on 13 Mar 2012 at 9:34

GoogleCodeExporter commented 9 years ago
Help! I unfortunately did not tests this on the real machine.
On my machine it works (Windows 7).
On destination machine, it does not work (Windows XP).
Font size set in Windows is ignored!
Theme "Windows" is selected and fonts highly enlarged in the rest of Windows...
Any idea?

Original comment by harald.g...@gmail.com on 7 Feb 2013 at 10:30

GoogleCodeExporter commented 9 years ago
Following is probably a dead-end:
POS-tech (forked from OpenbravoPOS as there is no recent development in 
OpenbravoPOS) has 'ui.fontsize' - but the architecture seems to be already 
different. Variable 'ui.fontsize' is used nowhere in our FairPOS; in POS-tech, 
it is used in 
com\openbravo\pos\widgets\WidgetsBuilder.java
only.

Links:
http://trac.scil.coop/pos-tech/wiki/download/2.30.2.sc2
http://trac.scil.coop/pos-tech/changeset/a6a1873b5590be78629efacd3f872dd79c22631
e/src-pos/com/openbravo/pos/forms/AppConfig.java

https://fairpos.googlecode.com/svn/trunk/OpenbravoPOS/src-pos/com/openbravo/pos/
forms/AppConfig.java

Original comment by benes.vi...@gmail.com on 10 Feb 2013 at 11:39

GoogleCodeExporter commented 9 years ago
Some Google search "windows XP font size swing java" says that since java 1.4 
you can apply windows font sizes to swing themes, e.g. to Metal theme. 
But I have so many other open pointsother open points...
Maybe you can help?

Original comment by harald.g...@gmail.com on 10 Feb 2013 at 11:56

GoogleCodeExporter commented 9 years ago
I agree that POS-tech would be interesting, but it's too late for the current 
release to look at it - maybe later. But their Wiki is quite thin (like ours)...
I would rather try to change the swing themes.

Original comment by harald.g...@gmail.com on 10 Feb 2013 at 12:05

GoogleCodeExporter commented 9 years ago
Using your search:
this switch should enable using windows font sizes in swing: 
"-Dswing.useSystemFontSettings=true"

also - can you try different versions of java on our target machine? And also 
java.exe/javaw.exe?

Original comment by benes.vi...@gmail.com on 10 Feb 2013 at 12:22

GoogleCodeExporter commented 9 years ago
Way to override default fonts in Swing UIManager has been found. 

See r143 - it is commented out, but if you enable it, it seems to work (I did 
not test it beyond the Sales screen). 

See also my comment in r143 where look and feel is being set, maybe there is 
some more subtle way how to influence fonts.

http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html

Original comment by benes.vi...@gmail.com on 10 Feb 2013 at 1:30

GoogleCodeExporter commented 9 years ago
note: function used in r143 is from
http://www.coderanch.com/t/442508/GUI/java/font-size-entire-application
(found using: "UIManager font size Swing")

Original comment by benes.vi...@gmail.com on 10 Feb 2013 at 1:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The "-Dswing.useSystemFontSettings=true" doesn't seem to work.
But the plaf changing works!
It's perfect for now - let's plan to put this in the config screen later... 
it's easy, but waste of time now...
Thanks a lot!

Open: put font size in config screen (in later milestone stock)

Original comment by harald.g...@gmail.com on 10 Feb 2013 at 4:40