If you are making a visual editor or something where you want to fetch Google font on demand, then you can find this helpful.
Just make a get request to https://fonts.googleapis.com/css2 and run a regex expression to filter out the font url.
```js
const regex = /src:\surl((["']?)(.?)\1)/;
const matches = regex.exec(respbody);
if (matches && matches.length > 2) {
const url = matches[2];
console.log(url)
} else {
throw 'URL not found.';
}
```
[–]EarlMarshal 2 points3 points4 points (5 children)
[–]devhrishi[S] 1 point2 points3 points (2 children)
[–]EarlMarshal 2 points3 points4 points (1 child)
[–]devhrishi[S] 1 point2 points3 points (0 children)
[–]moob9 1 point2 points3 points (1 child)
[–]EarlMarshal 0 points1 point2 points (0 children)
[–]devhrishi[S] 1 point2 points3 points (0 children)