Its been a couple of weeks but yesterday finally looked into this.
The problem is indeed specific to the version of the font on Vista
and so affects 32 and 64 bit.
When Microsoft added support for Arabic (etc) to the Times New Roman
font (and others) they added an OpenType 'GPOS' table which is
And my previous statement that it works on Vista 32-bit
was incorrect..
Thanks,
Dmitri
Phil Race wrote:
Its been a couple of weeks but yesterday finally looked into this.
The problem is indeed specific to the version of the font on Vista
and so affects 32 and 64 bit.
When Microsoft
I have tried on my 32-bit Vista (with 6u10 b08) and it worked
fine..
Thanks,
Dmitri
[EMAIL PROTECTED] wrote:
Hi Phil,
The Vista machine is 64-bit and the XP machine is 32-bit so perhaps that has
something to do with it.
Anyway, I have emailed you screen shots of the problem so you
qu0ll
I see the same problem on Linux (Ubuntu Gutsy 32-bit) -
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
The kerning applet example on the Java 2D tutorial shows no difference between
kerning and no kerning.
[Message sent by forum member 'frank_costanza' (frank_costanza)]
But you aren't using the same font as the previous reporter.
Serif on Linux uses Lucida Bright, which has no 'kern' table,
so that is expected.
-phil.
[EMAIL PROTECTED] wrote:
qu0ll
I see the same problem on Linux (Ubuntu Gutsy 32-bit) -
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
I didn't get much time today. So I didn't try Vista myself, except that
I dumped
Times New Roman and the Vista and XP versions of the 'kern' table appear
identical,
even though the font itself is about double the size on Vista vs XP.
So perhaps ..
no kerning on Vista x64
there's a bug in the
Hi Phil,
The Vista machine is 64-bit and the XP machine is 32-bit so perhaps that has
something to do with it.
Anyway, I have emailed you screen shots of the problem so you can see it.
--
And loving it,
-Q
_
[EMAIL PROTECTED]
(Replace the
I am trying to use kerning when displaying text using the following code:
[code]
MapTextAttribute, Object textAttributes = new HashMapTextAttribute,
Object();
textAttributes.put(TextAttribute.KERNING, TextAttribute.KERNING_ON);
textAttributes.put(TextAttribute.FONT, font);
I see that the font attribute overrides other attributes so I have now tried
this:
[code]
MapTextAttribute, Object textAttributes = new HashMapTextAttribute,
Object();
textAttributes.put(TextAttribute.KERNING, TextAttribute.KERNING_ON);
textAttributes.put(TextAttribute.FAMILY, Serif);
Take a look at this preso if you haven't already:
http://gceclub.sun.com.cn/java_one_online/2005/TS-3214/ts-3214.pdf
Slides 42-43.
And, of course:
http://java.sun.com/docs/books/tutorial/2d/text/textattributes.html
Dmitri
[EMAIL PROTECTED] wrote:
I see that the font attribute
That didn't help but I have noticed that the examples on this page:
ttp://java.sun.com/docs/books/tutorial/2d/text/textattributes.html
show no effect with kerning on or off on my Vista machine but do show a
difference on XP.
Could this be a bug under Vista?
--
And loving it,
-Q
Dmitri's pointers are valid.
Vista shouldn't make a difference to 2D since the code isn't OS specific
and isn't making any OS provided
calls. Perhaps the fonts just aren't the same. I do believe that Times
New Roman etc were expanded for Vista.
Still, that is surprising. Don't have Vista handy
I have done a bit more testing by adding setting of ligature attributes and the
results are the same: no kerning on Vista x64 but kerning working on XP.
Actually, I am using JSE 6 Update 10 (b11) so perhaps it has something to do
with that? I'll post in the appropriate forum for that release
13 matches
Mail list logo