Skip to content

Add/inline typography#69733

Open
levinbaria wants to merge 4 commits intoWordPress:trunkfrom
levinbaria:add/inline-typography
Open

Add/inline typography#69733
levinbaria wants to merge 4 commits intoWordPress:trunkfrom
levinbaria:add/inline-typography

Conversation

@levinbaria
Copy link
Copy Markdown
Contributor

Closes #69153

What?

Addition of one Inline Typography under the inline controls to have ability to change the Typography related stylings for selected text.

Why?

There are no way to change the font size, font family or other styling like letter spacing, text transform and line height of selected text in a paragraph block.

Testing Instructions

  1. Add content on the paragraph block.
  2. Select the text for which you want to change the typography.
  3. From the toolbar choose the Inline Typography under the inline controls.
  4. Apply inline typography you want.
  5. For removing the inline typography, click on the remove button.

Screenshots or screencast

After

inline-typography.mp4

@levinbaria levinbaria requested a review from ellatrix as a code owner March 27, 2025 15:05
@github-actions
Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @levinbaria, @definegravity, @davewhitley.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: levinbaria, definegravity, davewhitley.

Co-authored-by: Mayank-Tripathi32 <mayanktripathi32@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@levinbaria levinbaria marked this pull request as draft March 27, 2025 15:06
@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Mar 27, 2025
@github-actions
Copy link
Copy Markdown

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @levinbaria! In case you missed it, we'd love to have you join us in our Slack community.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@levinbaria levinbaria marked this pull request as ready for review March 27, 2025 15:06
@t-hamano t-hamano added [Type] Enhancement A suggestion for improvement. [Package] Format library /packages/format-library labels Mar 31, 2025
@t-hamano t-hamano added the Needs Design Feedback Needs general design feedback. label Apr 9, 2025
{
label: 'Times New Roman',
value: '"Times New Roman", Times, serif',
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these chosen as the defaults?
You can find a list of the default fonts here:
https://github.com/WordPress/gutenberg/blob/trunk/packages/base-styles/_variables.scss#L15

These labels also needs to be translation ready, since these are only latin characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository Needs Design Feedback Needs general design feedback. [Package] Format library /packages/format-library [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add inline font/text styling (font size and font family) to paragraph block

3 participants