classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] FYI: FontMetrics fixlet


From: Roman Kennke
Subject: Re: [cp-patches] FYI: FontMetrics fixlet
Date: Wed, 17 Aug 2005 14:09:41 +0200

Hi,

> > 2005-08-17  Roman Kennke  <address@hidden>
> > 
> >         * java/awt/FontMetrics.java
> >         (charWidth(int)): Correctly map Unicode indices to char[] here.
> 
> Which gives:
> 
>    196.     char[] chars = Character.toChars(ch);
>                            ^-------------------^
>   *** Semantic Error: No accessible method with signature "toChars(int)"
>   was found in type "java.lang.Character".
> 
> This method seems to be trying to handle arbitrary unicode code points,
> but we don't support those outside bmp yet. To fix the build breakage I
> just disabled this method for now. We can reenable it when the necessary
> updates for Character go in.
> 
> 2005-08-17  Mark Wielaard  <address@hidden>
> 
>       * java/awt/FontMetrics.java (charWidth(int)): Disable.
> 
> Should I commit that or do you have an update to Character pending?

Sorry, this was an accident. I found this while working on Jamaica and
haven't checked if that method actually exists in Classpath. Sorry for
that.

As a workaround we could either disable this thingy for now or add the
method in question to Character and let it return a new char[]{(char)
arg}

/Roman






reply via email to

[Prev in Thread] Current Thread [Next in Thread]