font

Specifies font options for the text displayed by tooltips.

Type: Object

Show Example:
jQuery

In this example, the font options of the tooltip text are altered.


                                    

                                    

color

Specifies a font color for the text displayed by tooltips.

Type: String
Default Value: '#232323'

This option supports the following colors.

  • hexadecimal colors
  • RGB colors
  • RGBA colors (not supported in Internet Explorer 8)
  • predefined/cross-browser color names
  • predefined SVG colors (not supported in Internet Explorer 8)
Show Example:
jQuery

In this example, the color option of the tooltip text is set to royalblue.


                                    

                                    

family

Specifies a font family for the text displayed by tooltips.

Type: String
Default Value: "'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana"

For details on acceptable values, refer to the Font family article.

Show Example:
jQuery

In this example, the tooltip text's font family is changed.


                                    

                                    

opacity

Specifies the font opacity for the text displayed in the tooltip.

Type: Number
Default Value: undefined

Show Example:
jQuery

In this example, the tooltip text's opacity option is set to 0.5.


                                    

                                    

size

Specifies a font size for the text displayed by tooltips.

Type: Number|String
Default Value: 12

For details on acceptable values, refer to the Font size article.

Show Example:
jQuery

In this example, the tooltip text size is increased to 20 pixels.


                                    

                                    

weight

Specifies a font weight for the text displayed by tooltips.

Type: Number
Default Value: 400

Show Example:
jQuery

In this example, the tooltip text's weight option is changed to 700.