I have Helvetica installed on my Windows XP PC, which is great for designing, but Helvetica looks horrendous when displayed in a browser on PC.
EG If I visit a website with this style:
font-family: Helvetica, Arial, sans-serif;
...Helvetica is displayed, as it is installed on my system.
Can I force Firefox to pretend Helvetica isn't installed on my system? I want these pages to display in Arial.
The following instructions do not require any plugins or addons, which is a bonus.
@font-face { font-family: 'Helvetica'; src: local('Arial'); }
Just a note about step four. You may need to replace several fonts, so you should copy and paste that line but replacing each font. For example, I need this: @font-face { font-family: 'helvetica neue'; src: local('Arial'); }
.
The other day I came across a site that used Comic Sans, and I decided I wanted to replace it with Verdana. I did some googling and found this Greasemonkey script which removes Comic Sans from any website you visit. I rewrote that script to replace Helvetica with Arial
var tags = document.getElementsByTagName('*');
for (var i in tags) {
var style = getComputedStyle(tags[i], '');
if (style.fontFamily.match(/helvetica/i)) {
var fonts = style.fontFamily.split(',');
for (var j in fonts) {
if (fonts[j].match(/helvetica/i)) {
fonts[j] = 'arial';
}
}
tags[i].style.fontFamily = fonts.join(',');
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With