Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkMisc ╰── GtkLabel ╰── DzlBoldingLabel
This is a GtkLabel widget that will allocate extra space if necessary so that the size request will not change when the contents of the label are bolded.
This might be useful when you want to change a label based on some selection state without it affecting the size request or layout.
Remember that bold and non-bold variants of fonts can often be very
different in terms of styling. To reduce the chances that you see
shifts in placement, you may want to set the “xalign” or
“halign” properties to 0.0 or GTK_ALIGN_START
respectively.
void dzl_bolding_label_set_weight (DzlBoldingLabel *self
,PangoWeight weight
);
void dzl_bolding_label_set_bold (DzlBoldingLabel *self
,gboolean bold
);
“bold”
property“bold” gboolean
Set the bold weight for the label.
Flags: Write
Default value: FALSE