You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Engin Arici (JIRA)" <ji...@apache.org> on 2014/06/05 18:28:01 UTC

[jira] [Commented] (BATIK-1027) Batik text anti-aliasing is partially broken on Java 1.7

    [ https://issues.apache.org/jira/browse/BATIK-1027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14018915#comment-14018915 ] 

Engin Arici commented on BATIK-1027:
------------------------------------

I was able to solve the aliased text rendering issue with the following. @font-face might not be necessary.
<style type="text/css" >
	  <![CDATA[	  
		@font-face { font-family:'Oxygen-400'; src: url('fonts/Oxygen-Regular.ttf') format('truetype'); }
		@font-face { font-family:'Oxygen-300'; src: url('fonts/Oxygen-Light.ttf') format('truetype'); }
		@font-face { font-family:'Oxygen-700'; src: url('fonts/Oxygen-Bold.ttf') format('truetype'); }		
		svg {
			font-family: 'Oxygen-300';
			font-size: 12px;
		}
		
		svg text {
			text-rendering: geometricPrecision;
		}
]]>
	</style>

> Batik text anti-aliasing is partially broken on Java 1.7
> --------------------------------------------------------
>
>                 Key: BATIK-1027
>                 URL: https://issues.apache.org/jira/browse/BATIK-1027
>             Project: Batik
>          Issue Type: Bug
>          Components: GVT Text
>    Affects Versions: 1.8
>         Environment: Operating System: All
> Platform: All
>            Reporter: Joël Bourquard
>            Assignee: Batik Developer's Mailing list
>         Attachments: Java7WithLabelRotationWorkaround.png, all text tags with text_rendering=optimizeLegibility.PNG, correctLabelsJava6.png, original.svg, screenshot.png, testcase.svg, wrongLabelsJava7.png
>
>
> Text that is rendered on top of a semi-transparent element will be rendered incorrectly if the JRE is Java 1.7. On Java 1.6 this issue doesn't occur.
> I have attached a very simple testcase that demonstrates this issue. On Java 1.6 the two "Hello World" texts are identical. On Java 1.7 the anti-aliasing for the upper text is broken.
> I was also able to reproduce the issue on batik-svn-12-10-01.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org