Hi I'm new to linux and have always checked my sites on windows. I have recently discovered that the only problem with my sites on linux is that the font sizes are wrong...
Here is one of the main problems that illustarte why my site does not work on linux :
I've got a menu with a width set to say 400px and the writing inside is set to 10px
On windows all shows up fine but on linux (firefox 1.5) the text is too big and takes up more space horizontaly and there fore starts a new line and the last two links in my menu are out of the box !
I could make the font smaller but it would not look good on windows and as most of my visitors use windows ...
Would using em's help or would it be the same problem?
Is there a tutural out there which explains how to do a whole site in percentages so when you change the font size the rest of the site follows?
What counts for me is that the site shows up well with font set to default, if this move a bit with text size set to bigger It doesn't bother me so much.
Sorry it's a commercial site so I cant give a link but the font in question is times, but it seems that ubuntu does not have times in open office ths similar writing is nimbus new roman, what script should I add to the font family for linux to replace Times New Roman? (I've already got times and times new roman in the list ...)
nope ! thats the problem... it seems that, at least debian and ubuntu do not have either times or times new romain, however openoffice seems to offer a font called Nimbus new romain that seems to be a clone of times new romain... But how can I be sure that other versions of linux use a font with exactly the same name (I think it is called something linke " nimbus new romain 9" or something !
I have checked and yes the height seems to be ok it's the horizontal spacing that is different ! Could anyone suggest what font I should add to the list so that it does't take up more space than the windows times new romain?
I'm going to add the nimbus new romain one and see how the spacing shows up !
well then i'm supprised ubuntu and debian don't have them on first install... I guess I will have to find another font that is at least the same size and put it at the en of the list... I've tried Nimbus new romain, and it is not exactly the same and is just as wide as the default one, my guess is that linux fonts follow a norm and not windows ones... I hope this is not the case or I will have to reduce the size of the times font on windows in order to fit linux !
I've checked the font list that I have got in openoffice on a fresh install of ubuntu, and there are none of the normal fonts ! My guess is that it shouldn't be hard to find and install them but my question is how many peoples and or companies think about doing this? how can I make my site show well on linux? Do I have to have small writing on windows? is there a setting to actually set the width each letter takes up? or some other way around this... a hack or something? or should I change the font used on windows for a bigger one? It's a shame, my site shows up very well on windows but not on linux!
ok I(ve just checked out the firefox options, it seems that it adds the serif and sans-serif fonts (will I think anyway). I'm just going to have to try and redo my design but how can you set to an automatic width a menu centered (margin : 0 auto and without the text going to the line with CSS? I don't want a fill page width I want it to just fit the text it contains, that would be the biggest problem solved !
The above usually works well for all OSs.
The first 3 are specific to fonts used with Linux and the others specific to Windows / Mac. The 'sans-serif' applies to all and should always be included, or 'serif' if you prefer.
• PotentProducts.com - for all your Hosting needs
• Helping people Host, Create and Maintain their Web Site
• ServerAdmin Services also available
You are creating an issue and making more work for yourself where no issue exist. If you specified standard web font it should display the same on linux and windows and mac unless you have some personal setting that prevents that from happening. It is true that linux distributions do not include "Times New Roman" or "Arial" in the default font list, but it is also true that linux users know that and that every distribution installs by default or provides package for something called "core web fonts" which includes the fonts you are missing. Just do the search for whatever distro you use and "core web fonts" and you should be all set.
thanks sash, however I'm still going to try and recode my pages so that they are legable even if the font is not the same or if the default size is not set to normal, but I guess that some parts of my design will need pictures to replace writing in order to show everything properly...
mmm seems that these fonts don't exist on debian anymore ...
That is kinda old news. Microsoft would like them to be gone, but they are out there and the license Microsoft released them with allows for their distribution and install. Based on that license they have to be package in stupid cabs but that is not a major problem.
Long story short, on debian just try
apt-get install msttcorefonts
and that should do it.