How to change font weight?
-
Hi
I’m using Roboto Font for my website. I downloaded the Roboto-Regular and Roboto-Bold fonts from the Google Fonts site and uploaded them to my website.
Here is the CSS for roboto fonts in style.css in my child theme. Right now, I’m testing on my localhost WordPress website.
/* Roboto Font */ @font-face { font-family: 'Roboto'; src: url('https://192.168.1.10/wp-content/uploads/fonts/Roboto-Regular.woff2') format('woff2'), url('https://192.168.1.10/wp-content/uploads/fonts/Roboto-Regular.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; } @font-face { font-family: 'Roboto'; src: url('https://192.168.1.10/wp-content/uploads/fonts/Roboto-Bold.woff2') format('woff2'), url('https://192.168.1.10/wp-content/uploads/fonts/Roboto-Bold.woff') format('woff'); font-weight: bold; font-style: normal; font-display: swap; }
I wanted the titles and headings in bold to have 700 points in weight. So I changed it in Typography -> Headings -> Font Weight = 700. Headings are working fine.
But, with the Gutenberg editor, how can I adjust the font weight for the bold text? For example, in paragraph block, when I select some words and on ‘Bold’ button (Ctrl+B), the font weight is 600 points. I want it to be 700 points by default.
How do I do that?
Thanks
The page I need help with: [log in to see the link]
- The topic ‘How to change font weight?’ is closed to new replies.