Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["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."]]],["The `Theme.FontStyle` interface defines optional properties for styling text. These properties include `family`, which is a string representing the font family; `size`, a number specifying the font size; and `weight`, a string defining the font weight. These properties allow for customization of text appearance within the Blockly theme. They are all optional, indicated by the question mark (?) in their names.\n"]]