WordPress.org

Support

Support » How-To and Troubleshooting » webkit font or dynamic font?

webkit font or dynamic font?

  • emaarkhan

    @emaarkhan

    Hi,
    I m looking for have 2 icons namely franchise and hancock on a website. But i don’t know how to use dynamic font.Can anyone help me on how to use it

Viewing 15 replies - 1 through 15 (of 24 total)
  • esmi

    @esmi

    Forum Moderator

    Are you trying to add icons or a different font?

    emaarkhan

    @emaarkhan

    trying to use it on #access selector and another one on title. i want to use font.

    killerdeveloper

    @killerdeveloper

    Maybe you can try my plugin “Font” it will definitely let you change font for “#access” or any other selector and it works visually so no coding here.
    http://wordpress.org/extend/plugins/font/

    esmi

    @esmi

    Forum Moderator

    You should be able to do this via your theme’s stylesheet.

    emaarkhan

    @emaarkhan

    How? that font isn’t normal arial or tahoma, its a choice of font.so it would be dynamically.shouldn’t it be?

    esmi

    @esmi

    Forum Moderator

    What do you mean by “its a choice of font”?

    emaarkhan

    @emaarkhan

    The font name is franchise and hancock. Not everyone have it, its selective font. I want to use it using webkit or typekit, but in typekit both of them aren’t available so i m left with webkit. so can you tell me how to

    esmi

    @esmi

    Forum Moderator

    I’d suggest you start by reviewing the CSS font-family rule.

    emaarkhan

    @emaarkhan

    That is css2 right? and in css2. the given fonts are used from user pc if available, otherwise it falls back to other mentioned font. But what if the font isn’t on system.

    esmi

    @esmi

    Forum Moderator

    You should always end the font-family list with a generic font-family such as sans-serif.

    emaarkhan

    @emaarkhan

    i can use @font-face bt where to put the font n how to use it in #access selector.example wuld help.thnx

    esmi

    @esmi

    Forum Moderator

    emaarkhan

    @emaarkhan

    esmi i looked and it helped a lot. thanks but now the font get into its real font. i think i might have mistake in my trailing slashes. Please help me out here

    @font-face {
        font-family: 'franchiseregular';
        src: url('../franchise-bold-webfont.eot');
        src: url('../franchise-bold-webfont.eot?#iefix') format('embedded-opentype'),
             url('../franchise-bold-webfont.woff') format('woff'),
             url('../franchise-bold-webfont.ttf') format('truetype'),
             url('../franchise-bold-webfont.svg#franchiseregular') format('svg');
        font-weight: normal;
        font-style: normal;
    
    }

    and the fonts are in a folder in theme folder that i have e.g /themes/nf/font
    am i doing something wrong?

    Moderator Andrew Nevins

    @anevins

    Forum moderator

    Try using a more specific URL to each font, starting from the root directory of your WordPress application.
    E.g

    /wp-content/themes/yourTHeme/yourDirectoryToTheFont/franchise-bold-webfont.eot

    emaarkhan

    @emaarkhan

    Its nt helping 🙁

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘webkit font or dynamic font?’ is closed to new replies.
Skip to toolbar