blockly > blockRendering > ConstantProvider > setFontConstants_
Metoda blockRendering.ConstantProvider.setFontConstants_()
Ustaw stałe powiązane z czcionkami.
Podpis:
protected setFontConstants_(theme: Theme): void;
Parametry
Parametr |
Typ |
Opis |
motyw |
Motyw |
Bieżący motyw obszaru roboczego. |
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-29 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-29 UTC."],[[["The `setFontConstants_` method is used to configure font-related settings within the Blockly block rendering engine."],["It takes a `Theme` object as input, which provides the necessary font information for the current workspace."],["This method is designated as `protected`, indicating it's primarily for internal use within the `ConstantProvider` class."],["By setting font constants based on the theme, it ensures consistent visual styling for blocks across different workspaces."]]],["The `setFontConstants_()` method within the `ConstantProvider` class sets font-related constants. It is a protected method that accepts a `Theme` object as its sole parameter. This `theme` parameter represents the current workspace theme and is used to define the font constants. The method does not return any value.\n"]]