Skip to content

Commit

Permalink
fix: add more font weights of DNBMono
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Feb 18, 2021
1 parent 02d4521 commit 22b7983
Show file tree
Hide file tree
Showing 18 changed files with 5 additions and 2 deletions.
Binary file modified packages/dnb-ui-lib/assets/fonts/DNB.zip
Binary file not shown.
Binary file not shown.
Binary file added packages/dnb-ui-lib/assets/fonts/DNBMono-Bold.otf
Binary file not shown.
Binary file added packages/dnb-ui-lib/assets/fonts/DNBMono-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added packages/dnb-ui-lib/assets/fonts/DNBMono.zip
Binary file not shown.
7 changes: 5 additions & 2 deletions packages/dnb-ui-lib/scripts/tools/createSkeletonFont.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fs from 'fs-extra'
import opentype from 'opentype.js'
import Fontmin from 'fontmin'
import { asyncForEach } from './'
import { makeUniqueId } from '../../../src/shared/component-helper'
import { makeUniqueId } from '../../src/shared/component-helper'
import ora from 'ora'

const log = ora()
Expand All @@ -19,7 +19,10 @@ asyncForEach(
{ fontName: 'DNB', styleName: 'Regular' },
{ fontName: 'DNB', styleName: 'Medium' },
{ fontName: 'DNB', styleName: 'Bold' },
{ fontName: 'DNBMono', styleName: 'Regular' }
{ fontName: 'DNBMono', styleName: 'Light' },
{ fontName: 'DNBMono', styleName: 'Regular' },
{ fontName: 'DNBMono', styleName: 'Medium' },
{ fontName: 'DNBMono', styleName: 'Bold' }
],
async ({ fontName, styleName }) => {
const soruceFile = `${fontName}-${styleName}.ttf`
Expand Down

0 comments on commit 22b7983

Please sign in to comment.