Notoフォント:日本語のみ入った*.otfの入手方法(ハングル,中国語のみも)

Google,Adobeが作った和文フォントに、Noto Sans CJKというものがあります。

ファイルは下記の場所から取得できるのですが、CJK(中国語、日本語、韓国語)の3つが入っているため、
otfファイルのサイズが大きくなっています。
https://www.google.com/get/noto/

PCで使用する場合はこれで問題ないのですが、Androiddアプリなどのモバイル向けに利用する場合は、バイナリのサイズが大きくなってしまいます。このような場合、下記のサイトから特定の言語のフォントのみが入ったサブセットをダウンロードできます。
https://github.com/googlei18n/noto-cjk

たとえば、NotoSansCJKkr-Thin.otfは14.8MBもありますが、
日本語だけが入ったNotoSansJP-Thin.otfだと4.0MBで、なんと1/3以下のサイズになります。


特定言語のotfファイルの説明は以下のような感じです。

Region-specific OTF
===================
This packaging form provides monolingual subset versions of the fonts. There is
a separate font file for each of Simplified Chinese, Traditional Chinese, 
Japanese, and Korean. If you want to install one language only then this 
would be the option to consider. It will have the smallest space requirement.
It would also be the choice if you want to use the font on a system 
(such as Windows) that doesn't support the OTC format and can’t use the OpenType 
‘locl’ feature to select language.
 
The region-specific OTFs do not include the Monospace versions.



説明を見てわかるように、特定言語のみのサブセットotfには、等幅フォントは用意されていないので注意が必要です。

世界の文字と記号の大図鑑 Unicode 6.0の全グリフ
プログラマのための文字コード技術入門
文字コード「超」研究

関連記事

コメントを残す

メールアドレスが公開されることはありません。