Menu

#11 Custom Fonts Don't Display in White

open
nobody
None
5
2004-08-09
2004-08-09
Anonymous
No

As shown by the following example, a program which
displays white text using a custom font will not draw
the text once "jumped".

I've played around with it a bit, and it seems that
while Color(200,200,200) succeeds, Color(250,250,250)
fails. This is exceedingly weird.

import waba.fx.Color;
import waba.fx.Font;
import waba.ui.MainWindow;

public class Delme extends MainWindow
{
Font hebFont;

public Delme()
{
super("tbc ynmz", ROUND_BORDER);
setBackColor(new Color(255, 255, 255));
hebFont = new Font("Hebrew", Font.PLAIN, 14);
setTitleFont(hebFont);
}
}

Discussion

  • Nobody/Anonymous

    Custom font for example

     
  • uschafer

    uschafer - 2004-09-07

    Logged In: YES
    user_id=1100882

    In the hopes of stirring up some attention, I'm going to
    post all the pieces needed to reproduce this bug (not that
    they're so exotic...)

    Delme.rcp:
    ----------

    VERSION "1.0"
    ICONFAMILY "icon.bmp" "" "" "icon8.bmp" nocolortable
    SMALLICON "smallicon.bmp"

    Makefile:
    ---------

    Delme.class : Delme.java
    javac -g Delme.java -target 1.1 -classpath
    .../SuperWabaSDK/lib/SuperWaba.jar\;.

    Delme.pdb : Delme.class
    java -classpath
    .../SuperWabaSDK/utils\;.../SuperWabaSDK/lib/SuperWaba.jar
    Warp c Delme Delme.class

    Delme.res tver0001.bin tAIB03e8.bin tAIB03e9.bin : Delme.rcp
    .../pilrc/pilrc.exe -R Delme.res Delme.rcp

    Delme.asm : Delme.pdb
    java -classpath
    ...swj/jar/swj.jar\;.../jump/jar/jump.jar\;Delme.pdb\;.../SuperWabaSDK/lib/
    superwaba.jar Jump Delme

    Delme.prc : Delme.res tver0001.bin tAIB03e8.bin tAIB03e9.bin
    Delme.asm
    .../pila/pila Delme.asm

    Installing and running the resulting PRC into either the
    Palm Simulator or an actual Palm displays an application
    window with a seemingly empty title. Changing the Color
    values to (246,246,246) (or any smaller number) makes the
    title show up.

    Any takers?

     

Log in to post a comment.

MongoDB Logo MongoDB