how do i download/extract font from chrome developers tools

Clash Royale CLAN TAG#URR8PPPhow do i download/extract font from chrome developers tools
I have tired many things but i can't get it even though my computer has it.
How can i access this wont files...they are in .woff extension. Double clicking them in chrome inspector just takes to some url. Which doesn't work.
Nor this font is installed on my computer.
This is in fact first time in my life i have come across woff format and the concept web open format. I want to download the font website is using. I know i can download the images why not wont.

6 Answers
6
Right-click, then "Open link in new tab"
edit : you can also double-click, it has the same effect
Indeed, in your particular example it seems the server returns a
403 - Forbidden response to the request initiated by the action. Anyway, I was able to save the fonts by exploring chrome cache at chrome://cache. Search "woff" then "Right-click / Save link as..."– Michael P. Bazos
Dec 20 '13 at 23:09
403 - Forbidden
chrome://cache
i am able to get woff file now but it seems it's not working and it gives error if converted to ttf/oft type too.
– Muhammad Umer
Dec 21 '13 at 2:39
I realized that the saved file contains also the meta-informations useful to Chrome. So as to get only the payload you can try the freeware ChromeCacheView.
– Michael P. Bazos
Dec 21 '13 at 13:11
is there a way in this program to save file and not just save its information as that's whats happening. Also normally woff fonts type appear as 'font/woff' whereas the one i want has its type appears as 'application/x-font-woff'
– Muhammad Umer
Dec 21 '13 at 17:36
To get .woff fonts first open the chrome dev tools panel (Ctrl+Shift+i) go to Network and reload the page. There you will see everything the page downloads. Find the .woff file, right click and select Copy response.
Ctrl+Shift+i
The response will be a url so paste it in the navigation bar. A file will be downloaded, just add the .woff extension to it and voila.
If you are on a unixoid operating system and want to extract just a single file you can try the following. The structure of the chrome://cache pages is URL, parsed HTTP header, hex dump of the HTTP header and then hex dump of the payload.
chrome://cache
To extract a file copy all payload lines from a Chrome cache page to the clipboard (starting at the second 00000000: ... line), paste them into a text editor and save them as a plain text file (e.g. file.txt). If the payload is a gzipped WOFF file use xxd -r file.txt > file.woff.gz to convert it back to a binary file and gunzip file.woff.gz for decompression.
00000000: ...
file.txt
xxd -r file.txt > file.woff.gz
gunzip file.woff.gz
You can then use woff2otf to convert WOFF files to the OTF format or woff2 to convert WOFF 2.0 files to the TTF format. For batch processing this workflow should obviously be scripted.
It's easy (For Chorme only)
.woff
.woff
The only solution that worked for Squarespace.
– PJ Brunet
Oct 19 '17 at 6:16
I found the Chrome option to be OK but there are quite a few steps to go through to get to the font files. Once you're there, the downloading is super easy. I usually use the dev tools in Safari as there are fewer steps. Just go to the page you want, click on "Show page source" or "show page resources" in the Developer menu (both work for this) and the page resources are listed in folders on the left hand side. Click the font folder and the fonts are listed. Right click and save file. If you are downloading a lot of font files from one site it may be quicker to work your way through Chrome's pathway as the "open in tab" does download the fonts quicker. If you're taking one or two fonts from a lot of different sites, Safari will be quicker overall.
Although Marcelo's solution seems to be working great, you may not need to download the font at all! Just link to it remotely.
E.g the font is hosted on example.com, do
@font-face {
font-family: "Font Name";
font-style: normal;
src: url(http://example.com/webfonts/font-name.woff);
}
You may easily figure out the direct url to the font by looking into css code from example.com and see how they linked the file.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
it says forbidden
– Muhammad Umer
Dec 20 '13 at 22:01