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…


Aug 6, 2011 at 6:02pm


have you tried something like that ?

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

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


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 :)



You must be logged in to reply to this topic.