blockly > blockRendering > ConstantProvider > setFontConstants_
روش blockRendering.ConstantProvider.setFontConstants_().
ثابت های مربوط به فونت ها را تنظیم کنید.
امضا:
protected setFontConstants_(theme: Theme): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
موضوع | موضوع | موضوع فضای کاری فعلی. |
برمیگرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی."],[[["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"]]