xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: Obtaining glyph bounding box
Date Tue, 01 Feb 2005 02:09:15 GMT
Hi James,

James Shaw wrote:

> I am loading an SVG file containing an embedded font (and nothing else) 
> as an SVGDocument.
> I wish to obtain bounding boxes for glyphs in the embedded font, without 
> actually inserting that glyph in the DOM.
> What is the best way to obtain this data?

   Insert the glyph into the DOM (set visibility to hidden or even
just insert and then remove it before your script returns).  If you
really want to muck with Batik internals there are other ways
but AFAIK there are no SVG DOM methods for the glyph elements
that provide this functionality.

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

View raw message