As a web designer, you’re probably always on the lookout for new fonts to add to your toolkit. Canva is a great place to find fresh, high-quality fonts. In this article, we’ll show you how to get Canva fonts and how to style text in HTML using Canva fonts.
Getting Canva Fonts
There are two ways to get fonts from Canva:
- Download the font file directly from Canva
- Install the Canva app and use the font in your designs
Downloading Fonts from Canva
To download a font from Canva:
- Go to https://www.com/fonts/
- Browse through the fonts and find one that you like
- Click on the download button next to the font
- Choose whether you want to download the .otf or .ttf file
- .otf files can be used with both Windows and Mac computers, while .ttf files can only be used with Windows computers.
.Otf vs .Ttf Files
.Otf (OpenType format) files are slightly more versatile than .ttf (TrueType format) files. They include additional features such as ligatures, small caps, and alternate characters. However, they’re not as widely supported as .ttf files, so you may want to stick with .ttf files if you’re not sure which format to use.
.Eot vs .Woff Files
.Eot (Embedded OpenType format) and .Woff (Web OpenFont format) are two other formats that are designed for use on websites.
These formats are supported by most modern browsers, but they’re not as widely supported as .ttf files.Svg Files
.Svg (Scalable Vector Graphics) files are another option for using fonts on websites. These files are usually smaller in size than other font formats, and they can be scaled up or down without losing quality. However, they’re not as widely supported as other font formats.
Installing Fonts from Canva
One of the great things about Canva is the wide selection of fonts that are available for use in your designs. With over 83 supported fonts to choose from, you can find the perfect font for any project. But what if you want to use one of these fonts on your website or in your HTML documents?
Using Canva Fonts in HTML
Fortunately, it’s easy to use Canva fonts in your HTML documents. All you need to do is add a simple line of code into your web page’s <head> tag. This code will link to the Google Fonts API and allow you to use the desired font on your website.
To do this, simply add the following line of code to your <head> tag:
<link href=”https://fonts.googleapis.com/css?family=Lato” rel=”stylesheet”>
Replace “Lato” with the name of the font you want to use. You can find a complete list of supported fonts on the Canva website.
Once you’ve added this code to your <head> tag, you can then use the desired font in your CSS stylesheet by adding the font-family property. For example:
body { font-family: ‘Lato’, sans-serif; }
Make sure you include a fallback font in your CSS stylesheet in case the user’s device doesn’t support the Canva font you’ve chosen. This will ensure that your website is still legible even if the font doesn’t load properly.
Using Canva fonts in your HTML documents is a simple and effective way to add a touch of personality to your website or other online projects. With just a few lines of code, you can access the full range of Canva fonts and use them to create beautiful, professional-looking designs.