xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Engin Arici (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (BATIK-1027) Batik text anti-aliasing is partially broken on Java 1.7
Date Thu, 05 Jun 2014 16:30:02 GMT

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

Engin Arici edited comment on BATIK-1027 at 6/5/14 4:28 PM:
------------------------------------------------------------

I was able to solve the aliased text rendering issue with the following. @font-face might
not be necessary.
{code:xml}
<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>
{code}


was (Author: aengin):
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


Mime
View raw message