I've integrated some web fonts into my website, which display properly in every browser on my computer (and more importantly) on on other computers properly; strangely enough, Dreamweaver CS5.5's live view doesn't display them as they should be displayed. The font Raleway is displayed as Times New Roman, and League Gothic as Helvetica. Stranger still, Ubuntu, which I use for my <body> element in general, works fine in all weights and styles. Any advice on how to get the other fonts to work properly?
http://theapplenewsreel.com/Kindle4.html
Is an article which uses both Ubuntu (for the body) and League Gothic for the titles. I tried it out in BrowserLab, and it seems to work in everything except IE6, but that'e IE6.
lol Yes I've always wondered why the Live View isn't more representative of what the browser would render. I guess, since there are many differences in how elements are rendered in different browsers, they just did the best they could with Live View. Maybe someone with much more hands on knowledge could explain this.
In order for us to help you, we need to see the code of the problem in question. If neither of the problem fonts are on the website, it's kind of irrelevant to post a link to it.
Does Exo work in Live View? My suspicion is that you are missing one or more variants of the font. Live View requires the .ttf variant to preview the font, IE requires the .eot variant and the other 2 (.woff and .svg) are for the remainder of the browsers.
The code for Exo is simply a link in the <head> element to Google Web Fonts; <link href='http://fonts.googleapis.com/css?family=Exo:100,200,300,400,500,600,700 ,800,900,400italic' rel='stylesheet' type='text/css'>
Same goes for Open Sans Condensed (sorry, I confused it with League Gothic in earlier comments): <link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700' rel='stylesheet' type='text/css'>
The code for Raleway, Ubuntu and Museo is here:
@font-face {
font-family: "Ubuntu";
font-style: normal;
font-weight: 300;
src: local("☺");
src: url(/webfontkit-20111222-160801/ubuntu-r-webfont.eot) format("woff");
src: url(/webfontkit-20111222-160801/ubuntu-r-webfont.svg) format("svg");
}
@font-face {
font-family: "Ubuntu";
font-style: italic;
font-weight: 300;
src: local("☺");
src: url(/webfontkit-20111222-160801/ubuntu-ri-webfont.eot) format("woff");
src: url(/webfontkit-20111222-160801/ubuntu-ri-webfont.svg) format("svg");
}
@font-face {
font-family: "Ubuntu";
font-style: normal;
font-weight: 500;
src: local("☺");
src: url(/webfontkit-20111222-160801/ubuntu-b-webfont.eot) format("woff");
src: url(/webfontkit-20111222-160801/ubuntu-b-webfont.svg) format("svg");
}
@font-face {
font-family: "Museo";
font-style: normal;
font-weight: 300;
src: local("☺");
src: url(/MyFontsWebfontsOrderM3529046/webfonts/201E4B_1_0.ttf) format("ttf");
src: url(/MyFontsWebfontsOrderM3529046/webfonts/201E4B_1_0.eot) format("eot");
src: url(/MyFontsWebfontsOrderM3529046/webfonts/201E4B_1_0.woff) format("woff");
}
@font-face {
font-family: "Museo";
font-style: normal;
font-weight: 500;
src: local("☺");
src: url(/MyFontsWebfontsOrderM3529046/webfonts/201E4B_2_0.ttf) format("ttf");
src: url(/MyFontsWebfontsOrderM3529046/webfonts/201E4B_2_0.eot) format("eot");
src: url(/MyFontsWebfontsOrderM3529046/webfonts/201E4B_2_0.woff) format("woff");
}
@font-face {
font-family: "Museo";
font-style: normal;
font-weight: 700;
src: local("☺");
src: url(/MyFontsWebfontsOrderM3529046/webfonts/201E4B_0_0.ttf) format("ttf");
src: url(/MyFontsWebfontsOrderM3529046/webfonts/201E4B_0_0.eot) format("eot");
src: url(/MyFontsWebfontsOrderM3529046/webfonts/201E4B_0_0.woff) format("woff");
}
@font-face {
font-family: "Raleway";
font-style: light;
src: local("☺");
src: url(/webfontkit-20120225-212056/raleway-thin-webfont.ttf) format("ttf");
src: url(/webfontkit-20120225-212056/raleway-thin-webfont.eot) format("eot");
src: url(/webfontkit-20120225-212056/raleway-thin-webfont.woff) format("woff");
}As you can see, these do reference TTF fonts on my remote server, as well as in my local folder (which mirrors my remote server, obviously).
This one is a strange issue. Your website seems fine to me in Live View when I copy/paste the html and css - looks almost exactly the same as it does in FF/Chrome for me. I also tested this with a previous project of mine and the most common way for the get Live View to stop showing the fonts, was to remove the .ttf reference or move the fonts folder. I am assuming of course that the 2 fonts are referenced in your css styles? p {font-family: "Raleway", Helvetica, Sans-serif;"}
Only other thing that comes to mind is that your font settings in DW are not the same as the website you are trying to view. In preferences > font it should be set to UTF. See below screenshot. This one is kinda clutching at straws as it's rarely the problem.
I tried that. Unfortunately, to no avail. Frankly, I don't mind that much at this point, I've learned to compensate for the larger width of Helvetica as compared to Open Sans Condensed. I'll just wait until an update comes along to patch this, or see if CS6 solves the issue. Thanks anyway.
North America
Europe, Middle East and Africa
Asia Pacific