OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Multi-font @fontface

  • Thread starter Thread starter Fluxian
  • Start date Start date
F

Fluxian

Guest
Is it possible to create a fontface with several fonts in it, in such a way that:

font-weight: normal resolves to Roboto-Regular.ttf

font-weight: lighter -> Roboto-Thin.ttf

font-weight: bold -> Roboto-Black.ttf

font-weight: bolder -> Roboto-Bold.ttf

At the moment I'm defining a @fontface for each.
<p>Is it possible to create a fontface with several fonts in it, in such a way that:</p>
<p><code>font-weight: normal</code> resolves to <code>Roboto-Regular.ttf</code></p>
<p><code>font-weight: lighter</code> -> <code>Roboto-Thin.ttf</code></p>
<p><code>font-weight: bold</code> -> <code>Roboto-Black.ttf</code></p>
<p><code>font-weight: bolder</code> -> <code>Roboto-Bold.ttf</code></p>
<p>At the moment I'm defining a @fontface for each.</p>
Continue reading...
 

Latest posts

D
Replies
0
Views
1
Dhanushka Amarakoon
D
S
Replies
0
Views
1
Shikhar Ambashta
S
Top