Hi all,
Probably the most requested feature for tappytux is that the entry line where 
users type answers needs to be bigger (I mean huge) and prettier, using 
something like Comic Sans font at size 32 should do it, but of course lazarus 
provides no means of setting fonts and gtkrc seems to only be able to do it 
globally - not for one widget type only.

Which is why I am thinking that what I would need to do is create a component 
that is canvas drawn and knows how to output text in the font type of your 
choosing, in fact I think textout to a color-painted region might almost do 
it, however there is a catch, the component HAS to be UTF-8 enabled because 
tappytux is VERY internationalised and UTF is just about the only way to do 
that cleanly.
Now for the most part textout DOES display UTF-8 but the hard bit is input.
I have no idea how UTF-8 is mapped to keycodes, if I know how to handle an 
onkeydown event for a component in such a way as to ensure that the character 
displayed is what was actually TYPED (which includes handling things like Del 
and Backspace right) then my problem is solved. Of course such a component is 
sufficiently generically usefull that I imagine others would bennifit as well 
and as always I will lgpl it.

Any advice on how it should work ? What it should be descended from and how to 
get from input to screen ?

Ciao
A.J.
-- 
"80% Of a hardware engineer's job is application of the uncertainty principle.
80% of a software engineer's job is pretending this isn't so."
A.J. Venter
Chief Software Architect
OpenLab International
http://www.getopenlab.com       | +27 82 726 5103 (South Africa)
http://www.silentcoder.co.za    | +55 118 162 2079 (Brazil)

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to