Forum Moderators: not2easy
What happens:
The first line of text is in Calibri, then the rest of the page goes to some other similar font, but looks a bit off. One version of IE (customer's laptop) the font also prints on the screen larger than it should.
I cannot work out why the font changes in IE (other than its a rubbish browser that should be scrapped). Has anyone else had this issue and what can be done to fix it?
Customer needs it up and running ASAP for the website launch (big deal event with politicians etc). I am tempted to run the launch on my laptop with FF :P
The correct way to use the font-family css property would be:
font-family:Calibri, "Times New Roman", Times, serif;
then the browser will go through each font untill it finds one that the user has installed. You may already know this but i wasnt sure.
do you want to paste some html and css so I (or anyone else) can have a closer look?
It reduces the surprises.
To fix it for a presentation: make them purchase the font for one machine. Fix the layout afterward not to require "exotic" fonts.
The set of fonts in a basic install of windows that's also there on a mac and on linux is quite small. A list of fonts in the font-family can help. But don't expect them to be fully identical.
I usually do test in FF & IE, but with lots of pressure, this one slipped though.
On the customer's PC and my Laptop running IE6 & IE7 the site looks ok, but the font does not stay the same throughout.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Carer Support Model</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style4 {font-family: Calibri; color: #FFFFFF; font-weight: bold; font-size: 18px; }
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FFFFFF;
}
a:hover {
text-decoration: none;
color: #FF6600;
}
a:active {
text-decoration: none;
color: #FFFFFF;
}
.style5 {color: #000000;
font-family: Calibri;
font-weight: bold;
}
.style6 {font-family: Calibri;
font-weight: bold;
}
.style7 {font-family: Calibri; font-weight: bold; font-size: 24px; }
.style8 {font-size: 16px}
.style9 {font-size: 20px; }
-->
</style></head>
I hope this will help, if you need more of the code, please let me know.
I will upload the site soon and anyone who wishes to take a look at it in action, please PM me.
Another case of looking too closely and needing to take a step back and look at the bigger picture.
This still does not explain the problem with the customer's laptop displaying all text larger than normal in IE. Perhaps it is running IE5?
I even tried the View/text size/smallest and it had almost no effect.
I have left it with their IT team to fix that one, or to use another laptop for their launch.
IE frustrates me!
The user with the inexplicably larger text is running their machine at 120dpi (Larger Font Size)
In IE6 and IE7 this setting inherits down to the browser. (In IE8 it does not. IE8's Zoom feature controls base size independently from the OS settings - with a device resolution of 96 dpi always, as per the CSS spec.)
To check go to Display Properties - Settings - Advanced and it will show you the setting.
Betcha it's 120dpi, especially if it's a laptop.
Please post if this is the case, I'm curious.