doutan2111 2016-12-06 15:26
浏览 112
已采纳

Roboto字体下延器在Safari中无法正确呈现

I'm making my first steps learning to code. I have been taking some courses on Internet and now I'm developing a Wordpress child theme so I can continue learning from the practice.

The thing is that I'm using a Google font called Roboto. It works perfectly on Google Chrome but when I use Safari the descenders of my characters doesn't render correctly. This is an example for the "g" and the "j":

enter image description here

You can find the link here:http://mmparis.com/SMtestsite/paintings/beijing/

I uploaded this font using the functions.php file:

function wpb_add_google_fonts() {

wp_enqueue_style( 'wpb-google-fonts', 'https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i', false ); 
}

add_action( 'wp_enqueue_scripts', 'wpb_add_google_fonts' );

I've been looking for a lot of tutorials and posts here but I can't find the reason or the solution. Do you have some suggestion?

Thank you

  • 写回答

1条回答 默认 最新

  • doucuo1642 2016-12-06 15:43
    关注

    I had a quick inspect in Chrome on Windows and it looks like some of the padding is sitting over the bottom of the text.

    enter image description here

    Try adding height:30px; to .menu-toggle and see if that works. It should stop the padding sitting on it.

    .menu-toggle {
        height: 30px;
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料