Results 1 to 8 of 8

Thread: Subpixel rendering in Java?

  1. #1
    Join Date
    Jun 2006
    Beans
    33

    Question Subpixel rendering in Java?

    All of my Java applications look strange on my laptop because everything else has subpixel rendering, but the Java apps don't. How do I enable subpixel rendering for all Java applications in Ubuntu (Intrepid)?

  2. #2
    Join Date
    Apr 2007
    Location
    /dev/random
    Beans
    3,052

    Re: Subpixel rendering in Java?

    Don't Java programs read ~/.fonts.conf for that? Make sure yours looks something like this. If you don't have one, create it.
    Code:
    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    
    <fontconfig>
    	<match target="font" >
    		<edit mode="assign" name="embeddedbitmap">
    			<bool>true</bool>
    		</edit>
    	</match>
    
    	<match target="font" >
    		<edit mode="assign" name="rgba">
    			<const>rgb</const>
    		</edit>
    	</match>
    
            <match target="font" >
                    <edit mode="assign" name="autohint">
                            <bool>false</bool>
                    </edit>
            </match>
    
    	<match target="font" >
    		<edit mode="assign" name="hinting">
    			<bool>true</bool>
    		</edit>
    	</match>
    
    	<match target="font" >
    		<edit mode="assign" name="hintstyle">
    			<const>hintfull</const>
    		</edit>
    	</match>
    
    	<match target="font" >
    		<edit mode="assign" name="antialias">
    			<bool>true</bool>
    		</edit>
    	</match>
    </fontconfig>
    You just need to close and reopen any applications to see the changes take effect.
    ...

  3. #3
    Join Date
    Jun 2006
    Beans
    33

    Re: Subpixel rendering in Java?

    That's a much handier way for configuring my QT applications, but it doesn't work for Java.

  4. #4
    Join Date
    Apr 2007
    Location
    /dev/random
    Beans
    3,052

    Re: Subpixel rendering in Java?

    Hmm. What of fontconfig, then?
    Code:
    $ sudo dpkg-reconfigure fontconfig-config
    • Native
    • Always
    • Yes

    Code:
    $ sudo dpkg-reconfigure fontconfig
    ...

  5. #5
    Join Date
    Jun 2006
    Beans
    33

    Re: Subpixel rendering in Java?

    It's still the same.

  6. #6
    Join Date
    Jun 2006
    Beans
    33

    Re: Subpixel rendering in Java?

    I've been using Sun's proprietary Java but Freetype seems to have been implemented only in OpenJDK. So I'm going to install OpenJDK and see if there's any difference.

  7. #7
    Join Date
    Jun 2006
    Beans
    33

    Re: Subpixel rendering in Java?

    No, that didn't seem to work either.

  8. #8
    Join Date
    Sep 2009
    Beans
    16
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Subpixel rendering in Java?

    Bump
    GENERATION 20: The first time you see this, copy it into your signature and add 1 to the generation. Social experiment.

    http://counter.li.org/cgi-bin/certificate.cgi/532379

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •