Hi Eric,

I've added support for setting fonts for win32 controls in my fork of shoes.
This applies not only to buttons but to all controls such as edit_box,
edit_line etc..
You can see the changes I've made in the patch file I've attached to this email.

I've also built shoes for win32,
1. download
http://github.com/joelagnel/shoes/raw/84b6705a2c8482a7f0eacb3ac0976a38f7a7ebaa/shoes-0.r1148.exe
2. execute shoes-0.r1148.exe

Alternatively, you can can apply the attached patch file to the shoes
source and build shoes.
The patch is only for win32, and I've added relevant stubs for gtk and
cocoa (so that build doesn't fail).
I will be submitting an official patch (over another weekend) with
code for these operating systems.

Usage:
b = button("text, :font => "Times New Roman")
alert(b.font)       # alerts with font name.

Cheers,
Joel


On Sun, Apr 26, 2009 at 1:58 AM, Joel Fernandes <[email protected]> wrote:
> Already able to change the font of a control on windows, its very easy.
> Now am modifying my fork of shoes enough so that it can do what you're
> looking for and yet is consistent with the rest of the code.
>
> As I'm really busy these days, give me a day or 2. will post a link to
> the binary after building
>
> Joel
>
> On Sun, Apr 26, 2009 at 1:01 PM, Joel Fernandes <[email protected]> wrote:
>>> Set the font of the text elements can fix it according to the shoes manual,
>>> the button element has no :font style,so how to set the font of the button
>>> element?
>>
>>
>> you can't, but I can try adding that into Shoes for you .. will let you know
>>
>> Joel
>>
>
>
>
> --
> joel
>



-- 
joel

Attachment: controls_set_font.patch
Description: Binary data

Reply via email to