Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a ttf font I can freely use that covers Chinese, Japanese and Korean for Java [closed]

On a blackbox linux system neither the system or the openjdk had any fonts so this caused issue for my Java application.

So far to get round this I have copied the Lucida fonts from an Oracle Java install into the jre/lib/fonts dir and ran fc-cache -rv jre/lib/fonts and that has worked for me.

But it seems these standard fonts do not support CKJ scripts, what is a font I can copy to fonts that will add support for these scripts for my Java application.

Note I cannot run install or similar on the linux machine I need a font I can just bundle with my application that I can then copy to the jre/lib/fonts folder.

like image 816
Paul Taylor Avatar asked Feb 15 '18 19:02

Paul Taylor


People also ask

What fonts are TTF?

True Type Fonts (TTF) TrueType is a standard for vector fonts and was developed by Apple and Microsoft in the late 1980s as a competitor to the Adobe's Type 1. Their aim was to create a font format which can be cross-platform.

Can I use TTF font?

TrueType Font (TTF) TTF has long been the most common format for fonts on Mac and Windows operating systems. All major browsers have supported it. However, IE8 has no support for TTF; and starting with IE9 it is only partially supported as the fonts must be set to “installable”.

Which font is used for Chinese?

At first glance, their component strokes seem to have a consistent thickness reminiscent of Latin Sans Serif typefaces like Helvetica. This type of Chinese font is known as Heiti. Literally “black-style,” Heiti is the dominant family of digital fonts in use on Chinese phones and computers around the world.

What is CJK font?

Chinese, Japanese, and Korean (CJK) fonts are derived from the Adobe CID-Keyed font technology and are available in AFP outline format. CJK fonts contain different typefaces that are suitable for printing various Chinese, Japanese, and Korean documents.


3 Answers

DO NOT combine and create your own CJK fonts, because same Chinese Character (a codepoint in Unicode) may have different glyphs in Chinese Simplified, Chinese Traditional, Japanese and Korean fonts. If you use font designed for one area for users from another area, they will feel that your font is strange, hard to recognize, or even wrong.

Check Noto Serif CJK is here! for an example about glyphs of 述.

Check Source Han Serif, an open source Pan-CJK typeface for an example about glyphs of 曜.

I strongly recommend you to use Noto Sans CJK and Noto Serif CJK family for your purpose, and use Noto Sans/Serif CJK SC when rendering Chinese Simplified text, Noto Sans/Serif CJK TC when rendering Chinese Traditional text, Noto Sans/Serif CJK JP when rendering Japanese text, and Noto Sans/Serif CJK KR when rendering Korean text. Never mix them together.

like image 170
ChenZheChina Avatar answered Oct 22 '22 12:10

ChenZheChina


You could take a look at Noto, which will "support all languages with a harmonious look and feel."

like image 25
RoelN Avatar answered Oct 22 '22 12:10

RoelN


I couldn't find a font that supported Chinese, Japanese and Korean so, I had to create my own. Below is a quick program I made to show off this font showing hello in all four languages + English. (I hope that's ok).

Download Link: https://mega.nz/#!Mt5mCJzR!DMVa1usSTV6OEraQQlcF8dGcg5VYkboNB6O_dkQD-QE

Edit:

I found someone else who has done a similar thing to me (combined lots of fonts) The link to their download is here.

like image 6
Tacodude7729 Avatar answered Oct 22 '22 14:10

Tacodude7729