Skip to main content
Inspiring
June 3, 2019
Answered

Using Standard Mac Font

  • June 3, 2019
  • 3 replies
  • 1355 views

I'm trying to use a font that's on my Mac in my stylesheet by using this code:

.styleccursive2 {

  font-family: "Noteworthy";

  font-size: 22px;

  color: #242424;

  text-align: left;

  font-weight: lighter;

  letter-spacing: -0.5px;

  word-spacing: 2px;

  line-height: 20pt;

}

But when I test it in my template, the font is shown as Cursive Arial

I made sure I uploaded my edited style sheet before testing it.

Am I don't something wrong?

Thanks

Alan

This topic has been closed for replies.
Correct answer English100

If you want, you could click my screen name, then the Message button on the right to send a Private Message with a link to your files. I could take a look at what's been uploaded and see if there isn't something you've been staring at too long to notice.


Jon

I checked this morning and the new font I added to my stylesheet yesterday is now available. It seems as if there is some sort of delay between when I make a change to my stylesheet and when DW recognizes it. Very weird!

Alan

3 replies

pziecina
Legend
June 4, 2019

What is the file type extension of the font(s) you are trying to use?

If it is not woff, (or woff2) otf, ttf, then you will have to convert it to a downloadable font using a font conversion program, and insert it into your css as a downloadable font. However doing so may leave you open to legal action as you would be using a copyright font.

Inspiring
June 4, 2019

It's not an issue with a font, it's an issue where a font that I added to my stylesheet is not showing up when I try to use it. It's as if the edit was erased as it uploaded which is ridiculous of course.

Jon

What would you need? I can send you my HTML template file and my stylesheet. I would prefer not to post them.

Alan

Jon Fritz
Community Expert
Community Expert
June 4, 2019

If you want, you could click my screen name, then the Message button on the right to send a Private Message with a link to your files. I could take a look at what's been uploaded and see if there isn't something you've been staring at too long to notice.

Jon Fritz
Community Expert
Community Expert
June 3, 2019

The fact that DW is showing "cursive, Arial" in the Font field of the Properties window, under the CSS tab, means you must have it set in your code as "cursive, Arial".

It's likely that you just have two .styleccursive2 selectors in your stylesheet. You could be editing the first iteration with the Noteworthy font (not a web-safe font as Ben mentions) and the second one, later in the css file, is still set as "cursive, Arial".

The second one would take precedent, being later in the cascade.

It's hard to say without seeing your code though. Is there a chance you could share a link to your work in progress?

Inspiring
June 3, 2019

Jon

styleccursive2 is the ONLY font in my stylesheet. I have no idea why it's showing as cursive, arial which is why I posted here.

Ben

Thanks, I'll take a look at that.

Alan

Jon Fritz
Community Expert
Community Expert
June 3, 2019

DW won't show a style that isn't being used. The default "no font set" listing in the Font field is "Default Font" so "cursive, Arial" is definitely coming from "somewhere".

Make sure to check all sources for duplicate styles.

Keep in mind an external .css stylesheet won't typically override embedded <style> tag settings that are in the page's <head> section.

BenPleysier
Community Expert
Community Expert
June 3, 2019

Have a look at what web safe fonts are and the consequence when not using them: Fundamental text and font styling - Learn web development | MDN

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!