Bug#620385: josm: Cannot use fonts outside defoma

2011-04-22 Thread Giovanni Mascellani
Hi Teppitak.

On 21/04/2011 10:29, Theppitak Karoonboonyanan wrote:
 I don't know how to select the VM for Sweethome3d in this case.
 sun-java6-fonts depends on sun-java6-jre (without openjdk alternative
 dependency). So, it's forcefully installed.

BTW, you can use the JAVA_CMD environment variable.

 These data bring me to think that the main problem is the Virtual
 Machine, that is not able to use fonts without having defoma hints. I'll
 ask on the debian-java@ mailing list.
 
 It sounds so.

I asked on debian-java about this problem and did some more testing. It
actually turned out that the problem doesn't arise from defoma hints,
rather from the presence of the Lucida font.

http://lists.debian.org/debian-java/2011/04/msg00052.html

Given that I can reproduce the same behavior described in my last email
to that thread with the simple attached program, I consider this to be a
bug in OpenJDK. I'll forward this bug to the proper maintainer.

Giovanni.
-- 
Giovanni Mascellani mascell...@poisson.phc.unipi.it
Pisa, Italy

Web: http://poisson.phc.unipi.it/~mascellani
Jabber: g.mascell...@jabber.org / giova...@elabor.homelinux.org
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;
import javax.swing.JLabel;


public class UnicodeTest {
	
	public static void main(String argv[]) {
		JFrame f = new JFrame(Unicode Test);
		f.setSize(200, 200);
		JLabel l = new JLabel(Test text: ถนนหน้าเมือง);
		f.getContentPane().add(l);
		f.addWindowListener(new WindowAdapter() {
			@Override
			public void windowClosing(WindowEvent e) {
System.exit(0);
			}
		});
		f.setVisible(true);
	}

}


signature.asc
Description: OpenPGP digital signature
___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Bug#620385: josm: Cannot use fonts outside defoma

2011-04-21 Thread Theppitak Karoonboonyanan
Hi,

Thanks for your tests. Below is my results.

On Mon, Apr 18, 2011 at 12:30 AM, Giovanni Mascellani g...@debian.org wrote:

 WITH sun-java6-fonts INSTALLED:
  * Josm appears to show correctly Thai characters with both OpenJDK and
 Sun VM.
  * Sweethome3d has the same behavior with both VMs, but this is a bit
 strange: the Thai text is displayed correctly in the dialog box where
 I'm pasting it, but it's not rendered correctly in the main view (alla
 characters are square); I believe the difference is due to the use of
 two different renderers: Swing in the dialog box and OpenGL in the main
 view.

I don't know how to select the VM for Sweethome3d in this case.
sun-java6-fonts depends on sun-java6-jre (without openjdk alternative
dependency). So, it's forcefully installed.

However, under this condition, there is no difference between Thai
text displays in dialogs and in the main view. They are both displayed
properly.

 WITHOUT sun-java6-fonts INSTALLED:
  * Josm works with Sun VM, but doesn't with OpenJDK. :-(

I confirm this. With sun-java6-jre installed and openjdk-6-jre removed,
Josm can display Thai correctly without sun-java6-fonts. And the overall
fonts are rendered with a little bit smoother edge (more anti-aliased blur).

But on OpenJDK, it requires sun-java6-fonts. Otherwise, Thai would
be displayed with boxes.

  * Sweethome3d doesn't work with OpenJDK and partly works (as described
 before) with Sun VM. Probably the fact that you saw it working depended
 onthe fact that you used Sun VM.

It still works well on both VMs in my box. And Thai is also displayed
properly both in dialog boxes and main view.

At first, I though th_TH locale might make the difference. But it's still the
same under C locale.

 These data bring me to think that the main problem is the Virtual
 Machine, that is not able to use fonts without having defoma hints. I'll
 ask on the debian-java@ mailing list.

It sounds so.

Regards,
-- 
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/



___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel


Bug#620385: josm: Cannot use fonts outside defoma

2011-04-17 Thread Giovanni Mascellani
Hi Theppitak.

On 07/04/2011 11:23, Theppitak Karoonboonyanan wrote:
 On the other hand, sweethome3d, another Java application, can use the
 fonts without defoma requirement. So, I tend to think it's josm-specific
 problem rather than Java runtime in general.

Uhm, things here are a little different. Particularly, you should take
care of whether you're using OpenJDK or Sun VM to execute the Java
program. I'll try to summarize them here:

WITH sun-java6-fonts INSTALLED:
 * Josm appears to show correctly Thai characters with both OpenJDK and
Sun VM.
 * Sweethome3d has the same behavior with both VMs, but this is a bit
strange: the Thai text is displayed correctly in the dialog box where
I'm pasting it, but it's not rendered correctly in the main view (alla
characters are square); I believe the difference is due to the use of
two different renderers: Swing in the dialog box and OpenGL in the main
view.

WITHOUT sun-java6-fonts INSTALLED:
 * Josm works with Sun VM, but doesn't with OpenJDK. :-(
 * Sweethome3d doesn't work with OpenJDK and partly works (as described
before) with Sun VM. Probably the fact that you saw it working depended
onthe fact that you used Sun VM.

Can you confirm this observations?

These data bring me to think that the main problem is the Virtual
Machine, that is not able to use fonts without having defoma hints. I'll
ask on the debian-java@ mailing list.

Thanks, Giovanni.
-- 
Giovanni Mascellani mascell...@poisson.phc.unipi.it
Pisa, Italy

Web: http://poisson.phc.unipi.it/~mascellani
Jabber: g.mascell...@jabber.org / giova...@elabor.homelinux.org



signature.asc
Description: OpenPGP digital signature
___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Bug#620385: josm: Cannot use fonts outside defoma

2011-04-06 Thread Giovanni Mascellani
Hi Theppitak.

Sorry for the late answer.

On 01/04/2011 17:57, Theppitak Karoonboonyanan wrote:
 To edit OSM, fonts are required for displaying and editing non-English names.
 But josm does not see such system fonts without defoma support. For example,
 to use Thai, I need to install sun-java6-fonts to get Lucida font, although
 I have already installed many Thai fonts in the system. Without defoma hints,
 they are not available to josm.
 
 Note that defoma is to be removed soon:
 
   http://wiki.debian.org/OldPkgRemovals#defoma
 
 So, it should be good to have josm access system fonts without requiring
 defoma.

I have really low experience about these issues and tend to think that
here the fault is mostly of the Java Runtime Environment than of JOSM
itself.

Unfortunately I cannot see Thai fonts even with defoma installed. But my
native script is the latin one, so I'm not very expert with managing
fonts. Could you please provide me an OSM file with some strings that
you can see with defoma, can't see without defoma? And can you tell me
the name of a font that contains the required glyphs?

Thanks, Giovanni.
-- 
Giovanni Mascellani mascell...@poisson.phc.unipi.it
Pisa, Italy

Web: http://poisson.phc.unipi.it/~mascellani
Jabber: g.mascell...@jabber.org / giova...@elabor.homelinux.org



signature.asc
Description: OpenPGP digital signature
___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel

Bug#620385: josm: Cannot use fonts outside defoma

2011-04-01 Thread Theppitak Karoonboonyanan
Package: josm
Version: 0.0.svn3966-1
Severity: normal
Usertags: defoma-removal

To edit OSM, fonts are required for displaying and editing non-English names.
But josm does not see such system fonts without defoma support. For example,
to use Thai, I need to install sun-java6-fonts to get Lucida font, although
I have already installed many Thai fonts in the system. Without defoma hints,
they are not available to josm.

Note that defoma is to be removed soon:

  http://wiki.debian.org/OldPkgRemovals#defoma

So, it should be good to have josm access system fonts without requiring
defoma.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=th_TH.utf8, LC_CTYPE=th_TH.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages josm depends on:
ii  libgettext-commons-java 0.9.6-2  Java classes for internationalizat
ii  libmetadata-extractor-j 2.3.1+dfsg-2 JPEG metadata extraction framework
ii  liboauth-signpost-java  1.2.1.1-1simple OAuth message signing for J
ii  openjdk-6-jre   6b18-1.8.7-2 OpenJDK Java runtime, using Hotspo
ii  openstreetmap-map-icons 1:0.0.svn23763-1 Collection of map icons (classic s
ii  sun-java6-jre   6.24-1   Sun Java(TM) Runtime Environment (

Versions of packages josm recommends:
ii  josm-plugins  0.0.svn25527-2 Plugins for JOSM
ii  webkit-image-gtk  0.0.svn25399-2 generate images from webpages - GT

josm suggests no packages.

-- no debconf information



___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel