Naikai Font

资源包

· 作者 PhantomXiang

一款开源字体,可搭配或不搭配 Caxton 使用。

0 本站下载 0 关注 更新于 2 年前

最新 1.1 · 1.21.1 · Minecraft

一键开服(送7天)

关于

NaikaiFont by Max 是 SetoFont by 瀬戸のぞみ 的一个分支。这款字体专为中文用户设计,包含超过 4 万个字形。我所做的只是将其打包为资源包,如果你喜欢的话,请考虑支持原作者。
內海字體是基於瀨戶字體的開放原始碼中文字型,我只是把它包成資源包而已,如果你喜歡的話請考慮支持一下原作者。

版本

本资源包提供三种不同版本:Vanilla、Caxton-Raster 和 Caxton-MSDF。
本資源包有三種版本:Vanilla (原版)、Caxton-Raster,和 Caxton-MSDF。 Comparison 1

  • Vanilla 版本无需任何模组,但效果不够理想。此外,粗体文本显示异常。适用于 Minecraft 1.13 之后的任何版本。
  • Caxton-MSDF 版本需要 Caxton,具有近乎无限的分辨率。然而,Caxton 的 MSDF 渲染方法与 Iris 不兼容。开启光影时,世界内的文本将无法渲染(UI 文本不受影响)。
  • Caxton-Raster 版本使用 Caxton 的光栅渲染方法,与原版方法的区别在于 Caxton 提供了模糊效果和 mipmap,以防止锯齿(边缘锯齿化)。

  • Vanilla 版本不需任何模組,但字體的邊緣有惱人的鋸齒;此外,粗體字無法正常渲染。1.13以後的版本都支援TTF字體,理論上都能使用。
  • Caxton-MSDF 版本需要Caxton模組,因為採用了向量圖來渲染,所以不管怎麼放大都不會失真。缺點是開啟Iris光影時,告示牌上的文字無法顯示(UI文字不影響)。
  • Caxton-Raster 版本是一個折衷的方案,雖然和原版一樣都是用點陣圖渲染,但Caxton提供了模糊效果和mipmap,可以消除礙眼的鋸齒。 Comparison 2 ▲ Caxton-Raster 和 Caxton-MSDF 在較小的文字上幾乎沒有差別。\
  • ▲ There isn't much difference between Caxton-Raster and Caxton-MSDF in small texts. Comparison 3 ▲ Caxton-MSDF 和Iris不相容。
    ▲ Caxton-MSDF doesn't compatible with Iris.

选项

需安裝Respackopts以變更設定。
Respackopts is required to modify these options.

  • Text Shadow (default is off)
  • 字體陰影 (預設為關)

Caxton 配置

不喜欢 Caxton 字体的显示效果?或者使用了不同的 GUI 缩放比例?那么你可以尝试编辑配置文件。以下是操作方法。
不喜歡Caxton的顯示效果嗎?那你可以試試更改字體設定檔,說明如下。

For Advanced Users Only 前方高能 This is basically copy pasted from Caxton's mod page but with some extra explanation.

assets/minecraft/font/default.json

"blur": true

Config 4 Only has an effect on raster tech. If true, texels in the glyph bitmap will be interpolated.

"scale_factor": 1.1,
"shadow_offset": 0.5,
"shift": [0, -0.3]

Control the glyph size, shadow size and glyph offset.

"the_font_designer_couldnt_be_assed_to_make_an_italic_variant_so_slant_the_text": 1056964608

Automatically generating italic fonts. I think this is a joke made by the author, you need to convert float32 to int32 yourself then Caxton will convert it back (what the heck?). There is a dirty way to get the int number you want via Python:

import struct
# change 0.5 to whatever you want
slant = 0.5 
# the output should be 1056964608
print(struct.unpack('!i', struct.pack('!f', slant))[0])

assets/caxton/textures/font/NaikaiFont-Light.ttf.json and NaikaiFont-Bold.ttf.json

"margin": 4

The number of pixels to leave around the glyph bounding box on each side. Should be "range ≤ margin ≤ 255".
Honestly, I don't even know what it does. I have tried to set it to different numbers, but nothing happened.

"range": 4

The width of the range around the glyph between the minimum and maximum representable signed distances. This is a positive integer no greater than 255. This also determines the width of the border drawn for glowing sign text.

"max_mipmap": 2

Config 1 Config 2 The maximum mipmap level (0 – 4). This is pointless to set if you’re using the MSDF rendering tech. However, it can be useful for non-pixel fonts when you’re using the raster rendering tech.
Higher values mean lower resolution for small texts, which means less aliasings. However, some unwanted artifact may occur. Note there is a strange line under the glyph "一" in the mipmap level 4 picture.

"shrinkage": 16.0

Config 3 The number of font units corresponding to each pixel in the texture atlas. This can be set to a high value if using the "msdf" font rendering tech. If you’re using "raster", then you should set this to a lower value.

"tech": "raster"

Specifies whether to use the MSDF-based rendering method ("msdf") or to use glyph bitmaps ("raster" – EXPERIMENTAL). "msdf" is recommended for most fonts, but "raster" is more suitable for pixel fonts. In addition, only "raster" is fully compatible with Iris Shaders – text in MSDF fonts will not show up inside the world if a shader is loaded.

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源