font weight and textfield

Aug 6, 2011 at 5:03pm

font weight and textfield

I know I can set my UI object text field’s font size and font name via
jbox_set_fontsize and jbox_set_fontname,
but how can I set the fontweight? I just see getters (jbox_get_font_weight, jbox_get_font_slant) but no setter…

Thanks,
Daniele

#58365
Aug 6, 2011 at 6:02pm

Hello,

have you tried something like that ?

object_attr_setlong (x, gensym ("fontface"), k);

with k = 0 or 1 or 2 or 3 ;-)

HTH

#209766
Aug 6, 2011 at 11:35pm

Fantastic, I had never used this generic setter. Definitely something to know.

Thanks again vanille béchamel, two dumb questions with two precise answers :)

d

#209767

You must be logged in to reply to this topic.