Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Publication Station
Search
Editing
Courses/Design & Technique-Essential Web Design/05
(section)
From Publication Station
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== use a custom font == To use a custom font, the font file has to be stored somewhere, either '''locally''' (same folder as your site) or remotely. === locally === * download a font from: https://fontlibrary.org/ * save the font files (.ttf .woff) on your website folder, best in a folder dedicate to fonts * write the CSS @font-face rules for each of the fonts and font files Try changing the following example with other custom font In this case I'll use 5by7 https://fontlibrary.org/en/font/5by7 which includes 2 styles: regular and bold. Notice how 2 font sources (files) are used under the same font name, but with different weight, so that both the regular and bold font-styles are used. <source lang="html4strict"> <!DOCTYPE html> <html> <head> <style type="text/css"> @font-face { font-family: "5by7"; src: url("fonts/5by7.ttf"); font-weight: normal; font-style: normal; } @font-face { font-family: "5by7"; src: url("fonts/5by7_b.ttf"); font-weight: bold; font-style: normal; } body { font-size: 16pt; font-family: "5by7"; } </style> </head> <body> <h1>This is a custom font in Bold.</h1> <b>Bold again</b> <p>Regular font-weight in a paragraph</p> </body> </html> </source>
Summary:
Please note that all contributions to Publication Station are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Publication Station:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Main navigation
Main page
Printmaking Studio
Print Studio
Dig. Publishing Studio
Namespaces
Grafiwiki
Random Page
Log in
Wiki tools
Wiki tools
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs