Use emojis in badge labels and values
masterYou can include emoji characters directly in the label or value strings.
Important Considerations:
- Rendering: The appearance of the emoji depends on the client rendering the SVG. Emojis are embedded as-is.
- Layout: Emojis can have varying widths which may affect the badge layout. Use
num_label_padding_charsornum_value_padding_charsto adjust spacing if necessary. - Compatibility: Some IDEs (like PyCharm) may not render emojis in their built-in SVG viewers.
Python Example:
badge = anybadge.Badge(label="Pipeline status", value="😄", num_value_padding_chars=1)