Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #810884

    Hi,
    I have 6 custom font type (“NotoSans…”). I created font face but when I try to use my font type, it is auto change to Serif font.
    After that, I used ‘Font-Organizer’ plugin for that but it is not working too.
    How can I use my font type? Thanks

    #811305

    Hey rieckermann,

    I’m not sure exactly what you have done and what is not working, how exactly did you import the fonts and what CSS are you using? Please post a link to an example as well so that we can have a closer look.

    Best regards,
    Rikard

    #816217

    Sorry for reply lately.
    I created a new folder – “fonts” on CSS folder and added my fonts, my font-face file with the below content:

    @import url(‘//fonts.googleapis.com/css?family=Open+Sans+Condensed’);
    @font-face {
    font-family: ‘NotoSans-Regular’;
    src: url(‘/wp-content/themes/enfold/fonts/NotoSans-Regular.ttf’) format(‘truetype’);
    font-weight: normal;
    font-style: normal;
    }
    @font-face {
    font-family: ‘NotoSans-Bold’;
    src: url(‘/wp-content/themes/enfold/fonts/NotoSans-Bold.ttf’) format(‘truetype’);
    font-weight: normal;
    font-style: normal;
    }
    @font-face {
    font-family: ‘NotoSansCJKsc-Demi’;
    src: url(‘/wp-content/themes/enfold/css/fonts/NotoSansCJKsc-DemiLight.otf’) format(‘otf’);
    font-weight: normal;
    font-style: normal;
    }
    @font-face {
    font-family: ‘NotoSansCJKsc-Bold’;
    src: url(‘/wp-content/themes/enfold/fonts/NotoSansCJKsc-Bold.otf’) format(‘otf’);
    font-weight: normal;
    font-style: normal;
    }
    ……
    After that, go to “/wp-content/uploads/dynamic_avia”, updated enfold_zh.css file to update font type for my chinese pages
    body{font-family:’NotoSansCJKsc-Demi’,}

    #816263

    Hi,

    Thanks for that. Could you try using the full URL for the fonts to verify that the path your are using is correct?

    Best regards,
    Rikard

    #816606

    Thanks for your suggestion. I updated some wrong UR. But it is still not working.

    • This reply was modified 7 years, 4 months ago by rieckermann.
    #816638

    Hi,

    You can try to use this plugin https://wordpress.org/plugins/use-any-font/

    Best regards,
    John Torvik

    #816642

    “Use any font” plugin does not work and it is not supported multilanguage.

    #816704

    Hi,

    Ok, please try this in Quick CSS instead:

    body * {
    font-family:"NotoSansCJKsc-Demi" !important;
    }

    Try it at the top of the box so nothing else interferes. Also, you end CSS statements with semi-colons, not commas.

    Best regards,
    Rikard

    #817092

    Hi Rikard,
    It doesn’t work. I added your CSS on Quick CSS of Chinese and use “WhatFont” addon of Chrome to test. And font type is Serif – regular:(
    Font Bug

    • This reply was modified 7 years, 4 months ago by rieckermann.
    #817453

    Hi rieckermann,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #817585

    Hi Victoria,
    Please use the account below

    #818177

    Hi rieckermann,

    Wait, on the screenshot it says serif-regular, but then below the family is correct. Is that not what you’re trying to achieve?

    Best regards,
    Victoria

    #818527

    Hi,

    I want that my custom font type is used on the website, but as you see another font type is replaced it even if my custom fonts were added on the font-family property.
    I cross-checked on Word, and it has the same result.

    Thanks

    #818811

    Hi rieckermann,

    Here are some great articles for you:
    https://www.paulirish.com/2009/bulletproof-font-face-implementation-syntax/

    On the screen shot the font defined by what font is the font set by this rule

    
    body * {
    font-family:"NotoSansCJKsc-Demi" !important;
    }
    

    Best regards,
    Victoria

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.