# Import a Google Font1234

**URL:** <https://forum.freecodecamp.org/t/import-a-google-font1234/158755>\
**Category:** General\
**Created:** [November 13, 2017, 3:55am UTC](https://forum.freecodecamp.org/t/import-a-google-font1234/158755 "2017-11-13T03:55:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tariq](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@tariq](https://forum.freecodecamp.org/u/tariq)\
**Post date:** [November 13, 2017, 3:55am UTC](https://forum.freecodecamp.org/t/import-a-google-font1234/158755/1 "2017-11-13T03:55:05Z")

</div>

**Tell us what’s happening:**

Why do you have to call google to use a font? whats the the point, and why google?

**Your code so far**

```auto
<style>
  .red-text {
    color: red;
  }
  h2 {
    font-size: 16px;
    font-family: Lobster;
  }
  p {
    font-size: 16px;
    font-family: Monospace;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

```

**Your browser information:**

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36`.

**Link to the challenge:**  
[https://www.freecodecamp.org/challenges/import-a-google-font](https://www.freecodecamp.org/challenges/import-a-google-font)

- List item

---

<div class="post-metadata">

**Author:** ![Marmiz](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marmiz/32/74845_2.png) [@Marmiz](https://forum.freecodecamp.org/u/Marmiz)\
**Post date:** [November 13, 2017, 5:20am UTC](https://forum.freecodecamp.org/t/import-a-google-font1234/158755/2 "2017-11-13T05:20:09Z")

</div>

There are only few fonts that are implemented by default in all browsers, making them safe and compatible to use, called [web safe fonts](https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Fundamentals#Web_safe_fonts).

A lot of times however, you want to use some custom font to make the design of your page more appealing, so you need your webpage to load the desired fonts with it.

You can do it by either uploading your custom font file with your website asset (same as you would do with an image, for example) or use a 3rd party service that host that font somewhere on the web for you to use.

Just happens that Google Fonts is giving you a lots of fonts to use for free, hence why it was chosen.  
Another popular option is Adobe’s [typekit](https://typekit.com/)

Hope it helps 🙂

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:34pm UTC](https://forum.freecodecamp.org/t/import-a-google-font1234/158755/3 "2021-01-17T20:34:58Z")

</div>

Closed on January 17, 2021, 8:34pm UTC


