npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

yakuhanjp

v4.1.1

Published

Yakumono-Hankaku Fonts

Downloads

14,502

Readme

Yaku Han JP

Site & Documentation

https://yakuhanjp.qranoko.jp

About

Yaku Han JP(ヤクハンジェイピー)は、日本語テキストに含まれる約物を半角にするフォントです。

このブラウザ版は font-family(CSS)のフォールバック機能を利用し、文字幅を調整した「約物だけの Web フォント」を優先的適応させます。1 フォントが 4〜5KB と軽量なのが特長で、CMS 出力などの動的コンテンツへの利用に向いています。

Font Family

ゴシック体(Noto Sans JP)・明朝体(Noto Serif JP)・丸ゴシック(M PLUS Rounded 1c)を使用可能。フォント名末尾に s が付いているものはカッコだけを半角にします。

| フォント名 | スタイル | 半角対象 | 内包文字 | | :----------: | :--------: | :--------: | ---------------------------------------------------- | | YakuHanJP | ゴシック体 | 約物すべて | 、。!?〈〉《》「」『』【】〔〕・():;[]{} | | YakuHanJPs | ゴシック体 | カッコのみ | 〈〉《》「」『』【】〔〕()[]{} | | YakuHanMP | 明朝体 | 約物すべて | 、。!?〈〉《》「」『』【】〔〕・():;[]{} | | YakuHanMPs | 明朝体 | カッコのみ | 〈〉《》「」『』【】〔〕()[]{} | | YakuHanRP | 丸ゴシック | 約物すべて | 、。!?〈〉《》「」『』【】〔〕・():;[]{} | | YakuHanRPs | 丸ゴシック | カッコのみ | 〈〉《》「」『』【】〔〕()[]{} |

Font Weight

| フォント名 | W100 | W200 | W300 | W400 | W500 | W600 | W700 | W800 | W900 | | :----------: | :--: | :--------: | :---: | :-----: | :----: | :------: | :--: | :-------: | :---: | | YakuHanJP | Thin | ExtraLight | Light | Regular | Medium | SemiBold | Bold | ExtraBold | Black | | YakuHanJPs | Thin | ExtraLight | Light | Regular | Medium | SemiBold | Bold | ExtraBold | Black | | YakuHanMP | - | ExtraLight | Light | Regular | Medium | SemiBold | Bold | - | Black | | YakuHanMPs | - | ExtraLight | Light | Regular | Medium | SemiBold | Bold | - | Black | | YakuHanRP | Thin | - | Light | Regular | Medium | - | Bold | ExtraBold | Black | | YakuHanRPs | Thin | - | Light | Regular | Medium | - | Bold | ExtraBold | Black |

How To Use

フォントを呼び出す CSS ファイルを読み込んで、font-family の先頭にフォント名を追記します。※以下は YakuHanJP(ゴシック体・約物すべて)を使った場合の例

<link rel="stylesheet" href="path/to/yakuhanjp.css" />
.example {
  font-family: YakuHanJP, sans-serif;
}

CDN

  • https://cdn.jsdelivr.net/npm/yakuhanjp/
  1. シミュレーターで使用するフォントの種類を選択
  2. 表示された <link> タグをサイトの <head> タグ内に配置
  3. CSS を記述:font-family の日本語フォントより前に YakuHanJP などを優先指定

npm

  • https://www.npmjs.com/package/yakuhanjp
  1. npm でパッケージをインストール
$ npm install yakuhanjp
  1. 使用する CSS ファイルへのパスを記述

| フォント名 | JavaScript に書く import 文 | | :----------: | --------------------------------------------- | | YakuHanJP | import "yakuhanjp" | | YakuHanJPs | import "yakuhanjp/dist/css/yakuhanjp_s.css" | | YakuHanMP | import "yakuhanjp/dist/css/yakuhanmp.css" | | YakuHanMPs | import "yakuhanjp/dist/css/yakuhanmp_s.css" | | YakuHanRP | import "yakuhanjp/dist/css/yakuhanrp.css" | | YakuHanRPs | import "yakuhanjp/dist/css/yakuhanrp_s.css" |

License

  • Yaku Han JP : SIL OFL 1.1 AND MIT
  • Gothic fonts : Based on Noto Sans JP licensed under the SIL OFL 1.1
  • Mincho fonts : Based on Noto Serif JP licensed under the SIL OFL 1.1
  • Round Gothic fonts : Based on M PLUS Rounded 1c licensed under the SIL OFL 1.1

Credit