[FX.php List] [OT] How to display special fonts in an HTML page
Steve Hannah
shannah at sfu.ca
Wed Mar 22 17:29:15 MST 2006
Your HTML/CSS is fine (although from a stylistic standpoint, you
shouldn't be using a font tag.. use a span instead -- I'm guessing
you just have it this way to make sure that the font info is getting
through).
I tried out this example swapping Cheltenhm Bd BT with the names of
various fonts on my system and it works fine in all cases. However,
if i use a font that is in the /Library/fonts or /System/Library/
fonts folder and I log in as a user that is NOT an administrator in
OS X 10.3, the fonts are not displayed (they are just displayed as
generic fonts).
Try making sure that the font is located in your ~/Library/fonts
folder (i.e., /Users/yourusername/Library/fonts). This could just be
a permissions issue with OSX not allowing access to system level
resources for some reason...
Steve
On 22-Mar-06, at 3:54 PM, Bob Patin wrote:
> Kevin,
>
> Here's the code from my test page:
>
>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> <title>Untitled Document</title>
>
> <style type="text/css">
> <!--
> .Cheltenham {
> font-family: "Cheltenhm Bd BT";
> font-size: 40px;
> font-style: normal;
> font-weight: normal;
> }
> -->
> </style>
> </head>
>
> <body>
> <FONT COLOR=black SIZE=40 FACE="Cheltenhm Bd BT"
> class="Cheltenham">This should display in Cheltenham 40 bold </font>
> </span>
> </body>
> </html>
>
> ---------------------------------------
> Is there anything not kosher about the above CSS? I looked on the
> web to see if I could find anything amiss, but couldn't.
>
> Thanks for your input,
>
> Bob
>
>
>
>> On 23/3/06 10:26 AM, "Bob Patin" <bob at patin.com> wrote:
>>
>>> Well, I tried it both ways; it works fine in Firefox, fails in
>>> Safari for both my client and myself.
>>>
>>> I tried CSS over and over; I really don't think it's an error in
>>> the pages since Dreamweaver creates all the CSS tags on its own.
>>>
>>>
>> That very thing could be the problem. It may not be linking the
>> style sheets properly, or it may be doing it inline in an invalid
>> way (depending on your doctype), or there may be a clash of class
>> names somewhere. Safari is probably more fussy about this stuff
>> (which version/s are you using?). DW8 is much better at handling
>> this than previous versions, so I still reckon you should post
>> some code, especially if you’re using MX or MX2004.
>>
>> --
>> Kevin Futter
>> Webmaster, St. Bernard's College
>> http://www.sbc.melb.catholic.edu.au/
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
----------------------------------------
Steve Hannah
Web Services Developer
Faculty of Applied Sciences
Simon Fraser University
shannah at sfu.ca
604-268-7228
Homepage: http://www.sjhannah.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060322/cd99ec97/attachment.html
More information about the FX.php_List
mailing list