Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load new font using Chrome Developer Tools?

Chrome Developer tools is great for editing CSS.

Is there a way to load in a new font from the Chrome Developer Tools, without having access to change the source code on the server?

I would like to be able to load in new fonts and try them out from the Chrome Developer Tools.

like image 756
Duke Dougal Avatar asked Nov 15 '25 20:11

Duke Dougal


1 Answers

In Chrome Developer Tools go to Sources and open your css file. Add @import url(...); in the beginning of the file to import the new font and then change the css to use that font family:

@import url('https://fonts.googleapis.com/css?family=Open+Sans');

body {
  font-family: "Open Sans", sans-serif;
}
like image 97
jacbmelo Avatar answered Nov 18 '25 12:11

jacbmelo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!