Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS(src): Fix invalid example @font-face def #34655

Merged
merged 5 commits into from
Jul 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions files/en-us/web/css/@font-face/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,19 +179,20 @@ The example below shows how to define two font faces with the same font family.
/* Defining a regular font face */
@font-face {
font-family: MainText;
src: local(Futura-Medium),
url('FuturaMedium.woff') format("woff"),
url('FuturaMedium.otf') format("opentype");
format("opentype");
src:
local(Futura-Medium),
url("FuturaMedium.woff") format("woff"),
url("FuturaMedium.otf") format("opentype");
}

/* Defining a different bold font face for the same family */
@font-face {
font-family: MainText;
src: local(Gill Sans Bold), /* full font name */
local(GillSans-Bold), /* postscript name */
url('GillSansBold.woff') format("woff"),
url('GillSansBold.otf') format("opentype"),
src:
local(Gill Sans Bold) /* full font name */,
local(GillSans-Bold) /* postscript name */,
url("GillSansBold.woff") format("woff"),
url("GillSansBold.otf") format("opentype"),
url("GillSansBold.svg#MyFontBold"); /* Referencing an SVG font fragment by id */
font-weight: bold;
}
Expand Down