blockly > Theme > FontStyle
Theme.FontStyle interface
Signature:
interface FontStyle
Properties
Property |
Modifiers |
Type |
Description |
family? |
|
string |
(Optional) |
size? |
|
number |
(Optional) |
weight? |
|
string |
(Optional) |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `Theme.FontStyle` interface defines the font style for Blockly themes, including properties like family, size, and weight."],["All properties within the `Theme.FontStyle` interface (`family`, `size`, `weight`) are optional and can be used to customize the font style of Blockly elements."],["Developers can utilize this interface to create custom themes by specifying desired font styles using strings for font family and weight, and numbers for font size."]]],[]]