Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to steal a font from a site

Tags:

css

fonts

I know the question itself is illegal - asking to steal someone's home. :)

Anyways, it's a situation when a developer's logic is not working actually. With Browser's Developer Tool, I got the site's CSS. I located the @font-face code inside the main.css.

Here's what I got:

main.css:
path: http://www.example.com/assets/css/main.css
code:

@font-face {
  font-family: 'the_font';
  src: url("../fonts/fontname/fontname.eot");
  bla bla
  font-style: normal;
  font-weight: normal;
}

So, according to the code the font file is in a folder named "fontname" under the "fonts" folder. And from the path's direction we can guess that the font's location is:

http://www.example.com/assets/fonts/fontname/fontname.eot

But it's generating a 404 page.

Why NOT the path's logic is working?

like image 627
office-ask Avatar asked Mar 03 '14 09:03

office-ask


People also ask

How do I rip a font from a website?

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.

What are font files called?

OpenType is the standard font format in common use. There are two subformats: TrueType (with the extension of . ttf) and CFF (. otf).

How do I install WOFF fonts on a Mac?

Add fonts on a Mac manuallyGo to Finder > Applications > Font Book. Click the + icon in the Font Book window bar and browse to find your font file. Double click on the font file to install. Done.


1 Answers

The best way so far

You can actaully do rightclick: inspect > Application (on the top tabs) > Frames (scroll on the left tabs) Then you can find a Font section where all loaded fonts are listed. It lists all that are loaded in any possible secure way.

Further more, It also previews them on the right, to make it even easier

Application tab

Then you can right-click on the one you chose and click open in a new tab, and it downloads it. Then you can add a .woff at the end of the filename and use it anywhere. (you can check its extension on the bottom of the preview too)

like image 156
Abraham Avatar answered Sep 27 '22 18:09

Abraham