Skip to content

Joungkyun/font-d2coding-subset

Repository files navigation

D2Coding Subset Web Fonts

D2Coding license

D2Coding Font who careted by NAVER Corp.
D2Coding Web Font who generated by JoungKyun.Kim.

License

True Type font: Copyright © NAVER Copr. All Rights Reserved.

OFL(Open Font License)

THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.

Font information

Weights

  • Bold (700)
  • Normal (400)

Support type

  • eot
  • woff
  • woff2
  • ttf
  • svg (from 1.2.1)

Description

The D2Coding font is Korean developed font distributed by Naver. It is a font that is optimized for the coding of developers based on the well-known Nanum Barun Gothic font, considering not only the readability and similarity between characters but also harmony with Hangul in design.

The D2Coding subset font is a lightweight font to facilitate use on the web. This font has the following features:

  1. Includes 2350 characters of KSX1001 standard
  2. Includes 224 extended completed letters of CP949
  3. Korean alphabet, alphabet, number, punctuation
  4. Special characters that can be entered on the keyboard
  5. Special character area of KSX1001

A subset of D2Coding fonts are already being distributed on other sites, but there is a problem that space characters are missing, so there is a problem that does not meet the purpose of using a fixed-width font. (There is a problem that the width of d2coding characters and whitespace characters are different) The d2coding subset distributed here solves the whitespace character problem.

For original and ligature fonts, use the following repository:

Installation

1. Using JSDelivr

Add the following code to the header section of the HTML document:

<link href="http://cdn.jsdelivr.net/gh/joungkyun/font-d2coding-subset/d2coding-subset.css" rel="stylesheet" type="text/css">

Or, if you want to add a specific version:

<link href="http://cdn.jsdelivr.net/gh/joungkyun/font-d2coding@1.3.2/d2coding-subset.css" rel="stylesheet" type="text/css">

2. Using download package

  1. Uncompress the downloaded d2coding package into a web accessible path.
  2. Add d2coding-subset.css in the path to the header section of the HTML document as follow:
<link href="/path/d2coding-subset.css" rel="stylesheet" type="text/css">

3. Add font-face manually

In the header section of the HTML document, add CSS @font-face as follow:

@font-face {
  font-family: 'D2 coding subset';
  font-style: normal;
  font-weight: 400;
  src: url('D2Coding-subset.eot');
  src: local('※'), local('D2Coding'),
       url('D2Coding-subset.eot?#iefix') format('embedded-opentype'),
       url('D2Coding-subset.woff2') format('x-woff2'),
       url('D2Coding-subset.woff') format('woff'),
       url('D2Coding-subset.ttf') format('truetype'),
       url('D2Coding-subset.svg') format('svg');
}
@font-face {
  font-family: 'D2 coding subset';
  font-style: normal;
  font-weight: 700;
  src: url('D2CodingBold-subset.eot');
  src: local('※'), local('D2Coding Bold'),
       url('D2CodingBold-subset.eot?#iefix') format('embedded-opentype'),
       url('D2CodingBold-subset.woff2') format('x-woff2'),
       url('D2CodingBold-subset.woff') format('woff'),
       url('D2CodingBold-subset.ttf') format('truetype'),
       url('D2CodingBold-subset.svg') format('svg');
}

Using

Adding to CSS:

body {
	font-family: D2Coding, 'D2 coding subnset', monospace;
}

first, search local D2Coding font and next call D2 coding subset web font, and last load monospace