How to change font in an Angular project?

Asked

Viewed 741 times

1

I’m trying to change font in an Angular project and I’m trying to add "Styles" in the.json angular and it has no effect whatsoever.

Does anyone have any suggestions or can indicate me a process?

NOTE: I am beginner with angular.

1 answer

1

in your style.scss file

@import url("https://fonts.googleapis.com/css?family=Roboto");

* {
  font-family: "Roboto", sans-serif;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

Remembering that this is a css so it follows the normal precedence of css

Browser other questions tagged

You are not signed in. Login or sign up in order to post.