How do I download/extract font from chrome developers tools?

前端 未结 7 1385
甜味超标
甜味超标 2021-01-30 12:52

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 have the .woff extension. Double clicking them in chro

7条回答
  •  青春惊慌失措
    2021-01-30 13:01

    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.

    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.

    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.

提交回复
热议问题