From 965b3a0c90a70a243aa7354a2c10cf2d88df0753 Mon Sep 17 00:00:00 2001 From: Dhananjay Kuber Date: Fri, 22 May 2026 16:31:59 +0530 Subject: [PATCH] feat: show Font Family control by default in block inspector --- packages/block-editor/src/hooks/typography.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/hooks/typography.js b/packages/block-editor/src/hooks/typography.js index 855cf686122290..962cd0e5ad1176 100644 --- a/packages/block-editor/src/hooks/typography.js +++ b/packages/block-editor/src/hooks/typography.js @@ -181,11 +181,17 @@ export function TypographyPanel( { clientId, name, setAttributes, settings } ) { return null; } - const defaultControls = getBlockSupport( name, [ + const blockDefaultControls = getBlockSupport( name, [ TYPOGRAPHY_SUPPORT_KEY, '__experimentalDefaultControls', ] ); + // Ensure fontFamily is shown by default for blocks that support it, + // unless the block explicitly opts out by setting fontFamily: false. + const defaultControls = blockDefaultControls + ? { fontFamily: true, ...blockDefaultControls } + : undefined; + return (