Educational guide to font-weight
From the requested weight to the font that draws it
Compare absolute and relative weights, face matching, variable fonts and synthetic bold. A different number does not guarantee a different outline.
Mental model
font-weight requests a thickness within a family. The browser computes the inherited or relative value, matches a compatible face and may synthesize missing bold. The family, loaded resources and available glyphs determine the result.
- Request a weight
normal, bold, a number or a value relative to the parent.
- Match a face
Resolve the weight among available faces or a variable range.
- Draw the text
Use the selected glyphs, any necessary fallback and permitted synthesis.
Numbers and absolute keywords
normal equals 400 and bold equals 700. Unitless numbers accept values from 1 to 1000, including decimals; they are neither percentages nor limited to multiples of a hundred. Their visible availability depends on the font.
The same text, five requests
font-weight: normal
Aa · Weight changes the strokes of text.
font-weight: 400
Aa · Weight changes the strokes of text.
font-weight: bold
Aa · Weight changes the strokes of text.
font-weight: 700
Aa · Weight changes the strokes of text.
font-weight: 550
Aa · Weight changes the strokes of text.
The property is inherited and its initial value is normal. Changing weight does not change font-size, but it can change widths, wrapping and metrics. Use strong for semantic importance and em for emphasis; applying font-weight alone adds neither meaning.
Inheritance, bolder and lighter
bolder does not add 100 or find the next file. It resolves from the parent’s computed weight using reference steps 100, 400, 700 and 900; available face matching happens afterwards. lighter follows its own mapping.
Two parents and their descendants
font-weight: 400
Inherited · Aa · Weight changes the strokes of text.
bolder · Aa · Weight changes the strokes of text.
lighter · Aa · Weight changes the strokes of text.
font-weight: 600
Inherited · Aa · Weight changes the strokes of text.
bolder · Aa · Weight changes the strokes of text.
lighter · Aa · Weight changes the strokes of text.
For parents from 350 to below 550, bolder gives 700 and lighter 100; from 550 to below 750 they give 900 and 400. At the extremes the step is limited: from 900 upwards, bolder keeps the value; below 100, lighter keeps it. Use inherit to repeat the parent’s weight and a number when you need a precise target.
When the requested weight is missing
Matching is not a simple numeric distance. The browser first tries the exact weight within the family and faces compatible with style and width. If none exists, the matching algorithm has a defined search order.
A local family with 400 and 700 faces
font-weight: 400
Aa · Weight changes the strokes of text.
font-weight: 500
Aa · Weight changes the strokes of text.
font-weight: 550
Aa · Weight changes the strokes of text.
font-weight: 700
Aa · Weight changes the strokes of text.
From 400 to 500 inclusive, search upwards through 500, then below the target, and finally above 500. Below 400, lower weights are tried first; above 500, higher weights first. The computed value keeps the numeric target even when a different face represents it.
These aliases use local(), without font downloads. If the device lacks those names or blocks local font access, serif is used and the controlled comparison is no longer guaranteed. Inspect the browser’s rendered fonts: CSS.supports and getComputedStyle alone do not identify the resource used. A missing weight does not require moving to the next family; a missing glyph may require fallback.
Variable fonts and the wght axis
A variable font with a wght axis can offer intermediate weights within its range. Not every variable font includes that axis or covers 1–1000. Declaring a range in @font-face tells the browser what the file offers; it does not turn a static font into a variable one.
Reference recipe · requires your variable font file
This code does not run in the guide: replace the URL with a real file offering a wght axis and a 100–900 range, or adapt the descriptor to its actual range. The paragraph property requests one weight, 625; the @font-face descriptor announces a range with two numbers. For static files, declare each face separately with its correct weight, as in the previous comparison.
Prefer font-weight for the registered wght axis. A font-variation-settings declaration containing "wght" can impose that axis and override the high-level weight. Check that property, the descriptors and the loaded file before blaming an unchanged sample on missing support. Weight changes may affect layout; constant width is not promised.
Real bold versus synthesis
A designed bold face and artificial thickening are not equivalent. Allowing synthesis does not force it: if an appropriate face exists, the browser can use it. Disabling synthesis does not download or create a missing weight either.
One regular face, two permissions
Weight synthesis allowed
Aa · Weight changes the strokes of text.
Synthesis disabled
Aa · Weight changes the strokes of text.
font-synthesis: none disables all forms of synthesis and font-synthesis: weight allows only weight synthesis. To change just that permission while preserving the others, use font-synthesis-weight: none or auto and check its support separately. Do not disable synthesis globally without checking whether important content distinctions disappear.
Very thin weights can lose legibility even when their color meets the required contrast ratio. Check size, contrast, fallback, accents and text resizing to 200%. Preserve content and focus when lines rewrap; a heavy weight does not guarantee accessibility or change HTML semantics on its own.
Common mistakes
500 and 400 look identical
- Expected result
- Understand which weight is being represented.
- Cause
- The family does not offer both weights and matching selects the same face, or a low-level wght setting fixes the axis.
- Solution
- Inspect the rendered face and active rules. Load distinct faces or a variable font with the right range; do not infer the face from the computed value.
bolder does not produce 600
- Expected result
- Give the descendant a specific weight.
- Cause
- bolder has been interpreted as adding 100 to 500.
- Solution
- bolder from 500 computes 700. Declare 600 if that is the target and check how the family resolves it.
Bold does not match the design
- Expected result
- Use the intended bold face.
- Cause
- Only regular is loaded, descriptors do not match the file or the browser is synthesizing thickness.
- Solution
- Check loading and descriptors for each face. Use a real bold face or a correct variable range and decide whether to allow synthesis for that content.
Support and compatibility
Web Platform DX classifies font-weight as Baseline Widely Available. That status describes the platform feature; it does not establish whether a family is installed, loaded or offers the requested weight.
MDN BCD separates common numbers from extended numeric syntax 1–1000, recorded since Chrome 62, Firefox 61 and Safari 11. Variable fonts and range descriptors need their own checks. Support for font-synthesis-weight is independent of font-weight and the font-synthesis shorthand.
The four scenes apply native CSS without JavaScript emulation. In older browsers, keep normal or bold as a preceding declaration if you need a fallback for extended numbers. A syntax check does not certify visual differences, available fonts, synthesis or accessibility. The variable recipe is not presented as a verified preview.