fontsource / font-files

1500+ open-source fonts bundled into neat packages.
https://fontsource.org
MIT License
170 stars 31 forks source link

feat(font): add fusion pixel #76

Open OverflowCat opened 2 days ago

OverflowCat commented 2 days ago

Fusion Pixel Font is an open-source sans-serif pixel font designed to support Chinese, Japanese, and Korean (CJK) characters. It offers clear and sharp readability at 8, 10, and 12-pixel sizes.

The font has 3 pixel sizes, 2 styles (monospace and proportional), and 5 locales, resulting in a total of 30 combinations. Although I have added the locales using subsets, I am not entirely certain if they are functioning correctly (e.g., whether the family names are correctly assigned), as font files are renamed from different, separate locale-specific files.

Fonts added

fusion-pixel-8px-monospaced
fusion-pixel-8px-proportional
fusion-pixel-10px-monospaced
fusion-pixel-10px-proportional
fusion-pixel-12px-monospaced
fusion-pixel-12px-proportional

They are added using a script. I didn't include it here; check this branch. You need to run it using Bun.

OverflowCat commented 1 hour ago

In fact, the subsets here are not actually subsetting. Each individual subset contains the entire font (e.g., the other four contain Latin). For CJK, due to Han unification in Unicode, many characters that look slightly different in different locales are assigned to a single Unicode code point. Therefore, we cannot combine fonts from different locales. So the question is actually if users have the option to manually specify the subsets they wish to utilize.

My original plan was to create a font name for each locale, but that would result in 6 * 5 = 30 packages.

(Nevertheless, there is no need to worry about size - this is a pixel font, much smaller than typical CJK fonts.)