{"id":18362642,"date":"2025-03-15T10:37:34","date_gmt":"2025-03-15T10:37:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/incorrect-handling-of-variable-font-weight-in-site-settings-global-fonts\/"},"modified":"2025-03-15T10:52:08","modified_gmt":"2025-03-15T10:52:08","slug":"incorrect-handling-of-variable-font-weight-in-site-settings-global-fonts","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/incorrect-handling-of-variable-font-weight-in-site-settings-global-fonts\/","title":{"rendered":"Incorrect handling of variable font weight in Site Settings &gt; Global Fonts"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It seems to me that Elementor &#8220;Site Settings &gt; Global Fonts&#8221; do not work correctly with the weight settings of variable fonts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When I set a variable font for any of the system or user fonts in the &#8220;Family&#8221; field and enter a numerical weight value, for example, &#8220;450&#8221;, this value does not work when assigning this global font style to a font in the widget (screenshot from the developer panel: <a href=\"https:\/\/c2n.me\/4mqzGNF.png\">https:\/\/c2n.me\/4mqzGNF.png<\/a> )<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At the same time, if you enter the value manually in the &#8220;Typography&#8221; window, the entered weight is assigned correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">P.S. The only solution at the moment is to add manually the following lines to the Custom CSS field of the site settings:<br \/><code>:root {<br \/>--e-global-typography-primary-font-weight: 650;<br \/>--e-global-typography-secondary-font-weight: 550;<br \/>--e-global-typography-text-font-weight: 450;<br \/>...etc<br \/>}<\/code><\/p>\n","protected":false},"template":"","class_list":["post-18362642","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18362642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18362642\/revisions"}],"predecessor-version":[{"id":18362655,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18362642\/revisions\/18362655"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18362642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}