You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by rm <ru...@googlemail.com> on 2012/11/08 01:30:03 UTC

getExentOfChar

hi,

why can i not get the extent of a space  (" ") character that is alone by itself in a text node? i am getting this:

Caused by: org.w3c.dom.DOMException: 
	at org.apache.batik.dom.AbstractNode.createDOMException(AbstractNode.java:411)
	at org.apache.batik.dom.svg.SVGTextContentSupport.getExtentOfChar(SVGTextContentSupport.java:57)
	at org.apache.batik.dom.svg.SVGOMTextContentElement.getExtentOfChar(SVGOMTextContentElement.java:219)

the background for this is - since i was having kerning problems, and i can actually do without kerning at all, 
so i thought i could just do the positioning manually. but if place the glyphs one by one, i cannot figure out
the extent of spaced (aside from breaking all kinds of scripts, i.e. korean wouldnt work like this, i guess).

so … any suggestions? how can i place glyphs AND know WHERE EXACTLY they are? 

.rm