Skip to main content

ugly font paint

9 replies [Last post]
danko
Offline
Joined: 2008-07-18

hello,
i have adapted the fonts of the javaTheme because they are to small fur my usage. I use bidmap fonts.

In my build.xml file i added the line:

and in javaTheme.conf i set:
font=Bitmap{std}

It works fine but I get ugly pixels painted. see http://666kb.com/i/b0h0c85581auqt4vb.png

What is the problem and how can I solve it?
Thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
simski
Offline
Joined: 2008-06-10

Hi

I have the same problems with Windows and Resource Editor. I guess it depends more on the font and not on the os or ant vs resource editor.

Ciao

Shai Almog

Please supply the specific font face, size and version of Windows you
are using to reproduce this.

Thanks,
Shai.

> Hi
>
> I have the same problems with Windows and Resource Editor. I guess
> it depends more on the font and not on the os or ant vs resource
> editor.
>
> Ciao
> [Message sent by forum member 'simski' (simski)]
>
> http://forums.java.net/jive/thread.jspa?messageID=288289
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

danko
Offline
Joined: 2008-07-18

Thanks a lot!
I tried it on a nokia 6300 and their was the same behavior.

I got a look at the the resource editor and see that it is possible to choose fonts direct by name. I am newbie ;) If I choose Arial, Verdana, ... it works fine without that pixels.
I tried a bit to get that pixels in the resource editor but I was not successful.
I am not an expert but is it possible that I run the resource editor on windows and the ant task on linux?

Shai Almog

> I am not an expert but is it possible that I run the resource
> editor on windows and the ant task on linux?

That could be the source of the problem...
Font kerning is a very complex subject and we use rendering in the
tool based on sub pixel coordinates. Its possible that the Java SE
implementation under Linux acts differently from the Java
implementation under Windows when we "cut" the font file (Francis is
correct in his assumption).

Thanks.

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

danko
Offline
Joined: 2008-07-18

Today I generated that font by running the resource editor on linux and I get the same ugly pixels you can see on the picture.

Thanks.
danko

Shai Almog

Hi Danko,
this might be an issue of the Java's font kerning on Linux. Since we
don't have a Linux box available for testing we won't be able to
reproduce this properly for testing unless we can reproduce this on
Windows.

Thanks,
Shai.

> Today I generated that font by running the resource editor on linux
> and I get the same ugly pixels you can see on the picture.
>
> Thanks.
> danko

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

Shai Almog

Hi,
This seems to be a bug in the Font creation ant task. I will add it
to the issue list.

Thanks,
Shai.

> hello,
> i have adapted the fonts of the javaTheme because they are to small
> fur my usage. I use bidmap fonts.
>
> In my build.xml file i added the line:
> [code] > name="std" />[/code]
>
> and in javaTheme.conf i set:
> [code]font=Bitmap{std}[/code]
>
> It works fine but I get ugly pixels painted. see http://666kb.com/i/
> b0h0c85581auqt4vb.png
>
> What is the problem and how can I solve it?
> Thanks!
> [Message sent by forum member 'danko' (danko)]
>
> http://forums.java.net/jive/thread.jspa?messageID=287550
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

Francis De Brabandere

Must be a part of the next character that is being painted (in your
case the 'j'). You can try a different font where that doesn't happen,
the resource editor should show the result of the conversion so you
can test different fonts without having to build the whole app.

On Fri, Jul 18, 2008 at 2:54 PM, wrote:
> hello,
> i have adapted the fonts of the javaTheme because they are to small fur my usage. I use bidmap fonts.
>
> In my build.xml file i added the line:
> [code][/code]
>
> and in javaTheme.conf i set:
> [code]font=Bitmap{std}[/code]
>
> It works fine but I get ugly pixels painted. see http://666kb.com/i/b0h0c85581auqt4vb.png
>
> What is the problem and how can I solve it?
> Thanks!
> [Message sent by forum member 'danko' (danko)]
>
> http://forums.java.net/jive/thread.jspa?messageID=287550
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

--
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

kawaiimomo
Offline
Joined: 2008-07-10

Hi,

Try it first on a real device or a good emulator (Nokia for instance). WTK paints are really bad quality ones.

my 2 cents. Regards

*EDIT*

I just saw the buggy pixels. I thought you were referring to the overall bad quality on painting :-P

*EDIT*