Thank you. Of course, you were right. It's now working well ! ----- Original Message ----- From: "Thomas E Deweese" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Hervé Girod" <[EMAIL PROTECTED]> Sent: Friday, June 13, 2003 12:33 PM Subject: RE: Retriveing TextNodes Characteristics
>>>>> "HG" == Hervé Girod <[EMAIL PROTECTED]> writes: HG> Hello, I'm currently trying to use Batik with an EMFGraphics2D HG> (coming from FreeHep package) in order to generate a windows HG> Metafile corresponding with a SVG document. HG> (if I use a default TextPainter, texts are represented by bits of HG> lines, but I want to obtain vector EMF text instead) : and HG> although I'm able to retrieve the GVTFont (and its proper size), HG> I'm not able to retrieve the text color in a TextNode => You were very close (from batik.gvt.font.AWTGVTGlyphVector): Paint fillPaint = (Paint)aci.getAttribute(TextAttribute.FOREGROUND); Stroke stroke = (Stroke) aci.getAttribute (GVTAttributedCharacterIterator.TextAttribute.STROKE); Paint strokePaint = (Paint) aci.getAttribute (GVTAttributedCharacterIterator.TextAttribute.STROKE_PAINT); HG> I'm surely completely forgetting something basic, but what ?... You were getting the value of the 'stroke' (the outline) not the fill. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]