HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: css works except for fonts
Author: Mohyeddine
Date: 10/23/2025 10:54
 
I really didn't code in HTML for a while, so I'll give u a general idea.

-First, use an online or any tool to reformat/beautify your chaotic html
file.
-After the file is readable, try to find which fonts the site uses (You can
look for 'font-family' in the style block, or use a web extension like
WhatFont, in the worst cases, just assume it's using a standard font like
'sans-serif' or any one you prefer)

-Now, download the fonts that the site uses (there are many sources for
that).
-Now, either locate the main CSS file, and add this to it:

@font-face {
  font-family: 'MyLocalFont';
  src: url('path/to/your/font.ttf') format('truetype');
}
body {
  font-family: 'MyLocalFont' !important;
}


-Or locate your HTML file, create a style block in the head section and add it
the same way.

-If you have many HTML/CSS file, u might need to create a script (like a
python script) to automate this.

This is all I know for now...
 
Reply Create subthread


All articles

Subject Author Date
css works except for fonts

10/23/2025 02:20
Re: css works except for fonts

10/23/2025 10:54
Re: css works except for fonts

11/09/2025 05:47




6

Created with FORUM 2.0.11