Forum Moderators: not2easy

Message Too Old, No Replies

different nonstandard font family

         

yamoto

9:19 pm on Jun 30, 2003 (gmt 0)

10+ Year Member



ola

I have problem.
I would like to have text in swis font family. On my comp is everything alright, but when i load page on other computers (where swis font family is not intalled) is set to times new roman.

as i know the code looks something like that:

@font-face {
font-stretch: ultra-expanded;
font-family: "Swis721 BdRnd BT";
src="images/tt0815¦2.ttf");
}

Is this ok? Is src line correct?
Where in code must be placed?

thanx

yamoto

choster

9:49 pm on Jun 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your syntax appears to be correct as it would appear inside <style type="text/css"></style>; however, you should know that @font-face is a CSS2 selector and probably not supported very widely yet. CSS1 browsers would ignore everything in between @font-face{ and the closing}.

You can set up "fallback" typefaces within font-family, e.g.


body {font-family: "Swis721 BdRnd BT", Swiss, Univers, Helvetica, sans-serif"; }

@font-face {etc.

in which case the browser looks in the respective order for available fonts.

drbrain

9:57 pm on Jun 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



@font-face was not implemented in any of the "major" browsers (IE, Mozilla, Opera, Safari) so it doesn't work. Wait for CSS3 web fonts module.

choster

5:48 am on Jul 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It just occurred to me to add that Swiss 721 Bold Rounded BT is not in the public domain-- it is copyrighted by Bitstream, and I don't think their license allows you to distribute the TrueType definition files over the web (MyFonts.com is charging $24.75 for it...).