dlg_comp_font()

Sets the font size and style for the value text of a component within a dialog.

Syntax

planetcnc.dlg_comp_font(component, font_size=15, bold=True)

Parameters

Parameter Type Description Comment
component capsule Capsule object representing the component.
font_size int Font size for the text. Default is 15. optional
bold bool `True` for bold text, `False` for normal. optional

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
# Set font size to 18 and enable bold text
planetcnc.dlg_comp_font(my_component, 18, True)
 
print("Component font updated.")

See also

dlg_comp_pos
dlg_comp_size
dlg_comp_color
dlg_comp_font
dlg_comp_name
dlg_comp_value
dlg_comp_callback