diff --git a/docs/defining-blocks.md b/docs/defining-blocks.md index c3bde459992a..afca3715c726 100644 --- a/docs/defining-blocks.md +++ b/docs/defining-blocks.md @@ -36,7 +36,7 @@ namespace basic { ... } ``` -* `icon` The Unicode character from the icon font to display. Any free non-brand icon from Font Awesome (v5.15.4 at the time of writing) can be used. The full list can be found https://fontawesome.com/v5/search?m=free +* `icon` The Unicode character from the icon font to display. Any free non-brand icon from [Font Awesome](https://fontawesome.com/v5/search?m=free) (v5.15.4 at the time of writing) can be used. * `color` should be included in a comment line starting with `//%`. The color takes a **hue** value or a HTML color. * `weight` determines where your category appears in the toolbox. Higher weight means it appears closer to the top. diff --git a/theme/blockly-core.less b/theme/blockly-core.less index 8e937325bfb8..d04dad339476 100644 --- a/theme/blockly-core.less +++ b/theme/blockly-core.less @@ -194,7 +194,9 @@ i.icon.blocklyTreeButton { } .blocklyFlyoutLabelIcon { - font-family: 'Icons'; + font-family: 'Icons', 'Font Awesome 5 Free'; + font-weight: 900; + font-synthesis: none; font-size: 1.5rem; } diff --git a/theme/toolbox.less b/theme/toolbox.less index 6505e179defd..40325e2fec72 100644 --- a/theme/toolbox.less +++ b/theme/toolbox.less @@ -250,9 +250,11 @@ span.blocklyTreeIcon { opacity: 1; margin: 0.0em 0.25em 0.0em 0.25em; width: 30px; - font-family: 'Icons'; + // Keep legacy glyphs first, and use the bundled solid face for newer glyphs. + font-family: 'Icons', 'Font Awesome 5 Free'; font-style: normal; - font-weight: normal; + font-weight: 900; + font-synthesis: none; text-decoration: inherit; text-align: center; speak: none;