Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@dfds-frontend/fonts

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@dfds-frontend/fonts

DFDS fonts

unpublished
latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

DFDS fonts

Unofficial library for DFDS

There is one font family with four variants: normal, bold, light and cursive. The font names follows the common weight naming convention

https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight#Common_weight_name_mapping

main font from CDN

load the font by inluding this in html

 <link rel="stylesheet"
   href="https://unpkg.com/@dfds-frontend/fonts/main/font.css">

or import it from css

<style>
  @import "https://unpkg.com/@dfds-frontend/fonts/main/font.css";
</style>

or load it dynamically from javascript

<script
  src="https://unpkg.com/@dfds-frontend/fonts/main/font.js">
</script>

apply the font in css

body {
  font-family: DFDS, sans-serif;
}
.font-bold {
  font-weight: bold;
}
.font-light {
  font-weight: 300;
}
.font-italic {
  font-style: italic;
}

use the font

<p>this is a normal font</p>
<p class="font-bold">this is a bold font</p>
<p class="font-light">this is a light font</p>
<p class="font-italic">this is a italic style</p>

main font from npm

  • npm install @dfds-frontend/fonts
  • the files are in node_modules/@dfds-frontend/fonts

load the font by inluding this in html

<link rel="stylesheet"
      href="node_modules/@dfds-frontend/fonts/main/font.css">

demo

preload fonts

 <link rel="preload"
       href="https://unpkg.com/@dfds-frontend/fonts/main/DFDS-Regular.woff2"
       as="font" type="font/woff2" crossorigin>

 <link rel="preload"
       href="https://unpkg.com/@dfds-frontend/fonts/main/DFDS-Bold.woff2"
       as="font" type="font/woff2" crossorigin>

<link rel="preload"
       href="https://unpkg.com/@dfds-frontend/fonts/main/DFDS-Light.woff2"
       as="font" type="font/woff2" crossorigin>

<link rel="preload"
       href="https://unpkg.com/@dfds-frontend/fonts/main/DFDS-Italic.woff2"
       as="font" type="font/woff2" crossorigin>

more

To see all the available CDN files go to

https://unpkg.com/@dfds-frontend/fonts/

Keywords

font

FAQs

Package last updated on 09 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts