Roboto font in CSS

后端 未结 2 921
情书的邮戳
情书的邮戳 2021-02-19 00:11

I would like to use \"Roboto\" font in prestashop. I\'ve received design in .psd files and graphic designer used fonts \"Roboto Medium\" and \"Roboto Regular\". Do i understand

2条回答
  •  时光取名叫无心
    2021-02-19 00:37

    Make sure you are closing your CSS lines.

    font-family: "Roboto";
    font-weight: 400;
    

    Yes, your weights are correct.

    font-weight: 400; //normal
    font-weight: 500; //medium
    font-weight: 700; //bold
    

    Please read this regarding font-weight, it's not always available depending on the font. But, according to Google, you should be able to use those weights without a problem.

提交回复
热议问题