/    Sign up×
Community /Pin to ProfileBookmark

Hey Guys, I’m working on a page for a friend, and one of the fonts I’ve used doesn’t work on all computers. I remember reading a code once that lets you put in an alternate font face for users who don’t have that font, but I don’t remember what it was, or where I read it, if anyone could help, I’d be much obliged.

-Thanks

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@scojo1Aug 23.2005 — you can do this with CSS and the font-family property, if you need help with the CSS let me know

check this out

http://www.htmlhelp.com/reference/css/font/font-family.html
Copy linkTweet thisAlerts:
@C1RCU175P1D3RauthorAug 23.2005 — Heh... yeah, I'm not all to advanced, I just remember that there was a code for a secondary font, but I can't remember it. Can't do anything CSS, and I have no clue what the web-design group means on anything! hahaha! ?
Copy linkTweet thisAlerts:
@NogDogAug 23.2005 — Specifically, these are the generic font families:
[list]
  • [*] 'serif' (e.g. Times)

  • [*] 'sans-serif' (e.g. Helvetica)

  • [*] 'cursive' (e.g. Zapf-Chancery)

  • [*] 'fantasy' (e.g. Western)

  • [*] 'monospace' (e.g. Courier)
  • [/list]

    When assigning a font-family via CSS, you can provide a list of fonts with the most preferred being first in the list, and you should always provide one of the above generic fonts at the end of the list.

    Style sheet:
    <i>
    </i>body {
    font: medium arial, helvetica, sans-serif;
    }
    h1 {
    font-family: courier, monospace;
    }

    You can assign it in-line using the style attribute:
    [code=html]
    <p>This is a test. <span style="font-family: 'comic sans-serif', fantasy">It is
    only a test.</span></p>
    [/code]
    Copy linkTweet thisAlerts:
    @CharlesAug 23.2005 — That should be:body {
    font: 'Medium Arial', Helvetica, sans-serif;
    }
    h1 {
    font-family: Courier, monospace;
    }
    Copy linkTweet thisAlerts:
    @NogDogAug 23.2005 — That should be:body {
    font: 'Medium Arial', Helvetica, sans-serif;
    }
    h1 {
    font-family: Courier, monospace;
    }
    [/QUOTE]

    Negative: "medium" is the font size, followed by a list of font names. (I wanted to show how a list of font-family names could be used in with the "font" descriptor as well as the "font-family" one.)
    ×

    Success!

    Help @C1RCU175P1D3R spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.19,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...