blockly > Tema > setFontStyle
Método Theme.setFontStyle()
Configura o estilo da fonte de um tema.
Signature:
setFontStyle(fontStyle: FontStyle): void;
Parâmetros
Parâmetro |
Tipo |
Descrição |
fontStyle |
FontStyle |
O estilo da fonte. |
Retorna:
void
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-09-09 UTC.
[null,null,["Última atualização 2024-09-09 UTC."],[[["The `setFontStyle()` method allows you to configure the font style for a Blockly theme."],["It takes a single argument, `fontStyle`, of type `FontStyle`, which specifies the desired font style."],["Calling `setFontStyle()` updates the theme's font style, impacting the visual appearance of Blockly blocks and elements."]]],["The `setFontStyle()` method, part of the `Theme` class, configures a theme's font style. It accepts a single parameter, `fontStyle`, of type `FontStyle`, which defines the desired font style. The method's purpose is to apply the specified font style to the theme. It does not return any value (void).\n"]]