Hi, Sorry, don't know anything about fonts definition. I generated this one using batik's converter. What are gylphs ? How should I declare it ? Otherwise, yes I use "Khmer OS System" (http://www.khmeros.info) font which display khmer unicode. It is installed on my system in the windows fonts directory. Maybe that's where inkscape finds it. I should add that I found out lots of the caracters are being displayed correctly. Some are not like in my example. I know that for Windows softs, khmer unicode needs an up-to-date version of UPS10.DLL. With an old version we could get the same behaviour (some letters not displayed correctly). But this DLL is fine on my computer and I'm not sure what the dependency with batik is. What I want is just to display these Khmer caracters correctly in a JPEG image generated from a SVG file. Cheers, Jerome
[EMAIL PROTECTED] wrote: Hi Jerome, Jerome Benezech wrote on 02/06/2007 08:41:41 PM: > I am trying to transcoding from SVG to JPEG. My file contains text > in Khmer Unicode (http://www.khmeros.info). > After converting either to JPEG or PNG using org.apache.batik. > transcoder.image package, some of the characters are not displayed > correctly. I used the simple SaveAsJPEG example to run my tests. I am not sure I understand what you want. I looked at 'mySVGFont.svg' and while it includes an SVG font it lacks any of the Khmer gylphs to render the Khmer characters in your text with. Where is Batik supposed to find the glyphs? > I finally made this work using another tool (Inkscape) and by > embedding the Khmer font inside the SVG file. This is of course not > satisfactory as I need an API but at least it might help find the > root of the problem. Any idea where Inkscape is finding the font? > I attach 3 files: mySVGFont.svg, Inkscape.png and PNGEncoder.png. > The caracters are displayed correctly in the Inkscape.png file so I > assume my svg file is ok. Well it looks like Batik is having more luck finding the glyphs on your system than on mine, I just get nothing since the SVGFont's "missing-glyph" element has no geometry. Do you have a special font installed on your system? If so what type of font? (true type, type 1...). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jerome Benezech [EMAIL PROTECTED]
