描述
此模组对所有字体(包括资源包中的字体)进行平滑处理,以便在所有缩放比例下获得更好的可读性。此外,您可以使用计算机上安装的任何字体。
Smooth Font 是我之前制作的 Unicode Font Extension 模组的后继作品。然而,此模组不仅对 Unicode 字体有效,对 Minecraft 默认字体也有效,并且许多功能得到了改进。
主要功能
通常情况下,字符在以下情况下显示不清晰。
但是,此模组可以在这些情况下清晰地显示字符。
- 缩小缩放(尤其是 Unicode 字体)
- 小数倍缩放(例如 x0.75、x1.25 等)
- 倾斜视角
只需安装此模组即可启用这些功能,基本上无需任何设置。
此外,此模组还具有以下附加功能。
- 可以使用计算机上安装的任何字体。
- 在 Unicode 字体模式下启用大型 GUI 缩放。
- 仅优化模式。此模式可提升标准字体渲染器的部分性能。[v1.16~]
此外,此模组的设计旨在对大多数其他模组中的文本生效。
使用方法
默认情况下,按下 [HOME] 键即可打开配置界面。
外部字体文件的使用方法
从 v1.15 版本开始,除了系统安装的字体外,还可以使用特定文件夹中的外部字体文件。默认情况下,位于“<Minecraft 文件夹>/fontfiles”文件夹中的字体文件会被识别,并列出在 GUI 的字体选择列表中。(<Minecraft 文件夹>指的是包含“mods”文件夹和“config”文件夹等的目录。)字体文件夹路径可在配置文件中自定义。大多数 TrueType、OpenType 和 Type1 字体文件均可被识别。
示例:如果在配置文件的 “externalFontsPaths” 中添加 “font”,则 SmoothFont 也会识别 “font” 文件夹。
S:externalFontsPaths <
fontfiles
font
>
默认情况下不存在 “fontfiles” 文件夹,如果使用外部字体文件功能,则需要自行创建 “fontfiles” 文件夹。
如果您将字体文件包含在整合包中,请注意字体的权限和许可证。
相较于 Unicode Font Extension 的改进
- 支持默认 Minecraft 字体,包括资源包中的字体。
- 字符缩放效果更美观。
- 减少插值低分辨率字体的模糊感。
- 支持更大的字体尺寸。
- 自动亮度调整。
- 更快的纹理加载选项。
- 通过多核 CPU 加速字体图像生成。
- 降低内存占用。
- 更好的模组兼容性。
- 通过优化提升性能。
- 支持使用外部字体文件。
- 质量或性能优先模式。[v1.16~]
- 仅优化模式。[v1.16~]
兼容性配置 / 命令
- /sfont renderers
打印由 Smooth Font 管理的字体渲染器类。
- /sfont precision <high | normal | vanilla> <font renderer id>
为指定的字体渲染器设置字体宽度精度模式。
更改的同时会将设置保存到配置文件中。
高精度 (High precision):提供最佳的字体宽度质量。
普通精度 (Normal precision):在字符串宽度计算中提供适中的质量和更好的兼容性。
原版精度 (Vanilla precision):在 Unicode 字体字符串宽度计算中提供与原版等效的质量和最大兼容性。
- /sfont <disable | enable> <font renderer id>
临时禁用或启用指定字体渲染器的平滑字体功能。
禁用操作可几乎完全绕过目标字体渲染器的平滑字体功能。此为临时更改,不会保存到配置文件中。
若要永久生效,请手动将字体渲染器类添加到配置文件中的 "unaffectedClasses"。
注意事项
- 这是一个客户端模组,因此无需在服务器上安装。
- 请勿将 Unicode Font Extension 与 Smooth Font 同时使用。这两个模组天然冲突。
当前 MC1.8.9 版本无法与 Optifine 兼容。 => 已在 v1.6 中解决!
- 如果您想在 MC1.7.10 中使用本模组搭配 FastCraft,请在 FastCraft.ini 中将 "enableFontRendererTweaks=false" 设置为 false。
关于内存使用情况
自 1.14.1 及更高版本起,在使用平台字体时会大幅降低内存占用,
因此如果您正在更改字体,强烈建议更新至最新版本。
- ~v1.12:
使用平台字体时,分辨率越高,存储预渲染字形图像所需的内存就越大。高分辨率和大尺寸设置需要数百兆字节的内存。
- v1.13.x:
字形图像默认转换为灰度,因此内存占用已减少至原来的 1/4。
- v1.14.1~:
字形图像默认转换为灰度并经过压缩,因此内存占用大幅降低。(在 32px+20% 设置下,用于保存字形图像的总内存占用约为 15MB。)当然,与之前的版本相比,对性能几乎没有影响。
顺便一提,如果您使用的是 MC 默认字体或资源包字体,则无需额外消耗内存来保存字形图像,因为字形图像会根据需要从文件中读取,不会在内存中保留任何字形图像。
整合包
欢迎在任何整合包中使用此模组。
特别感谢
- 感谢 SuperExboom 提供简体中文翻译。
- 感谢 LastLife919 提供俄语翻译。
- 感谢 EnderDragonEP 提供繁体中文翻译。
Description
This mod draws all fonts (including resource pack's fonts) smoothly for better readability on all scales. Furthermore, you can use any font installed on your computer.
Smooth Font is the successor to my mod Unicode Font Extension. However, this mod is effective not only for unicode fonts but also for default MC fonts and many functions have been improved.
Main Features
Normally, characters are not displayed cleanly in the following situations.
However, this mod can display characters cleanly even under these situations.
- Scaling down (especially, unicode font)
- Fractional scaling (ex. x0.75, x1.25 etc)
- Oblique viewing angles
These features work by just installing this mod, basically any settings are unnecessary.
Furthermore, this mod has the following additional functions.
- Any fonts installed on your computer can be used.
- Enable the Large GUI scale in unicode font mode.
- Optimization only mode. This mode improves some performance of a standard font renderer. [v1.16~]
And, this mod is created as it should be effective for most texts of many other mods.
Usage
Pressing [HOME] key opens the configuration GUI by default.
Usage of external font files
Since v1.15, external font files in specific folders can be used in addition to fonts which are installed in a system. By default, font files located at "<minecraft folder>/fontfiles" folder can be recognized and these fonts are listed in a font selection list of a GUI. (The <minecraft folder> means the folder which has "mods" folder and "config" folder etc.) The font folder paths are configurable in a config file. Most of TrueType, OpenType and Type1 font files can be recognized.
ex) If you add "font" to "externalFontsPaths" in the config file, the "font" folder can also be recognized by SmoothFont.
S:externalFontsPaths <
fontfiles
font
>
The "fontfiles" folder doesn't exist by default and it is necessary to create "fontfiles" folder by yourself if you use the external font files feature.
If you include font files in your modpacks, please pay attention to the permission and the license of the fonts.
Improvements from Unicode Font Extension
- Support for default MC font including resource pack fonts.
- More beautiful scaling of characters.
- Blur reduction for interpolated low resolution fonts.
- Larger font size support.
- Automatic brightness adjustment.
- Faster texture loading option.
- Faster font image generation by multicore CPU.
- Reduce used memory.
- Better mod compatibility.
- Performance improvement by optimization.
- Use of external font file.
- Quality or Performance priority mode. [v1.16~]
- Optimization only mode. [v1.16~]
Compatibility configuration / commands
- /sfont renderers
Print font renderer classes managed by smooth font.
- /sfont precision <high | normal | vanilla> <font renderer id>
Set a font width precision mode for the specified font renderer.
It will be saved to config file simultaneously with the change.
High precision: Best quality in font width.
Normal precision: Moderate quality and better compatibility in string width calculation.
Vanilla precision: Vanilla equivalent quality and maximum compatibility in string width calculation of unicode font.
- /sfont <disable | enable> <font renderer id>
Disable or enable smooth font functions temporarily for the specified font renderer.
Disabling can nearly completely bypass the smooth font functions for the target font renderer. This is temporary change and NOT saved to config file.
To make changes permanent, please add the font renderer class to "unaffectedClasses" in config file manually.
Notes
- This is a client-side mod, so it is not necessary to install on the server.
- Don't use Unicode Font Extension with Smooth Font. Naturally, these mods conflict.
Currently MC1.8.9 version does not work with optifine. => Solved in v1.6!!
- If you want to use this mod with FastCraft on MC1.7.10. Please specify "enableFontRendererTweaks=false" in FastCraft.ini.
About memory usage
Since the version 1.14.1 and later drastically reduces memory usage when using the platform font,
it is strongly recommended to update to the latest version if you are changing the font.
- ~v1.12:
When using platform fonts, the higher the resolution, the more memory required to hold pre-rendered glyph images. Higher resolution and larger size settings require hundreds of megabytes of memory.
- v1.13.x:
The glyph images are converted to grayscale by default, so the memory usage has been reduced to 1/4.
- v1.14.1~:
The glyph images are converted to grayscale and compressed by default, so the memory usage has been drastically reduced. (Total memory usage to hold glyph images is approximately 15MB in 32px+20% settings.) Of course, compared to the previous version, there is almost no impact on performance.
Incidentally, if you are using MC default fonts or resource pack fonts, there is no extra memory consumption for holding glyph images because glyph images are read from files on demand and no glyph images are held on memory.
Modpacks
Feel free to use this mod in any modpacks.
Special Thanks
- Thanks to SuperExboom for simplified Chinese translation.
- Thanks to LastLife919 for Russian translation.
- Thanks to EnderDragonEP for traditional Chinese translation.
评论 0
登录后参与评分
还没有评论,来抢沙发吧