blockly > blockRendering > ConstantProvider > setFontConstants_
blockRendering.ConstantProvider.setFontConstants_()-Methode
Legen Sie Konstanten für Schriftarten fest.
Unterschrift:
protected setFontConstants_(theme: Theme): void;
Parameter
Parameter |
Typ |
Beschreibung |
Design |
Design |
Das aktuelle Design des Arbeitsbereichs. |
Gibt zurück:
voidm
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-29 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]