Cách nhúng font dùng 1 tên và chỉ khác src, font-weight (ok)

@font-face {
  font-family: iCielDomaineText;
  src: url(assets/fonts/iCielDomaineText-Bold.ttf) format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap
}
@font-face {
  font-family: iCielDomaineText;
  src: url(assets/fonts/iCielDomaineText-SemiBold.ttf) format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap
}
@font-face {
  font-family: iCielDomaineText;
  src: url(assets/fonts/iCielDomaineText-Medium.ttf) format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap
}
@font-face {
  font-family: iCielDomaineText;
  src: url(assets/fonts/iCielDomaineText-Regular.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap
}

Last updated

Was this helpful?