Hi Jan,
> I'd like to clarify it a little more. It seem that any 'character detection' > function returns wrong results in my case. There is appropriate glyph in the > font, but it is not processed properly. I am trying to find if this is > problem of Batik or Java. > > To approve Java functionality I've planned to write simple app using > java.awt.Font.canDisplay(char ch) function, but it is not possible as I > can't get font instance because this font is hidden to Java by any reason. Humm, this sounds like a font issue. A while ago, I made some experiments regarding TrueType fonts and I found out inconsistent/weird results across implementations. (Unfortunately, I didn't yet found the time to publish anything about these experiments -- really need to find some spare time for this...) Although, by taking a quick look at my notes, I noticed that Batik (apparently) didn't suffer from any of the "weird" potential issues which (for example) seemed to affect affected ASV, Firefox and Opera (and which require further investigation), the following may be useful: * When specifying the font-family, use the typeface name [1] and use no apostrophes or quotes surrounding it: something like <text font-family="Helvetica, Arial, Tahoma, sans-serif">Sample Text</text>. Also, when using this sort of declaration, system fonts will be used (although the tip may probably also be worked in CSS font-face declarations); * Many fonts seem to have minor internal incoherencies -- I seriously recommend installing FontForge [2] and open the font(s) you are trying to work with; * Java and/or Batik may have issues with OpenType font support -- I guess FontForge supports converting between font formats so you may consider converting to a TTF font and see if it works around the problem; * You may also convert the font to SVG Font (again, FontForge seems to support this) and use it; * In terms of cross-implementation support, TTF fonts seem to be the best approach. Note that some of these alternatives (specially regarding font conversion/export) can intuitively pose legal issues in font usage so I'm only suggesting it as part of private experiments -- for content deployment, you'll naturally need to investigate further and/or check with your local font vendor. ;-) > As I said, the only thing I want to achieve is to find out where the problem > is and then fix it if possible. Hope this helps, Helder [1] In Windows, this can be retrieved through the font properties dialog (which can be triggered by double clicking on a font in "Control Panel", "Fonts") -- it is displayed in the "Typeface name: " label. [2] http://fontforge.sourceforge.net/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
