HPSlib

Shared library mod for HP's Minecraft mods, providing reusable UI widgets, adaptive layout utilities, and cross-version JEI/EMI compatibility layers.
Back to Files

26.1.2-neoforge-HPSlib-1.5.0

File namehpslib-26.1.2-neoforge-1.5.0.jar
Uploader
hp12138hp12138
Uploaded
Dec 6, 2026
Downloads
3
Size
138.1 KB
Mod Loaders
NeoForge
File ID
10076167
Type
R
Release
Supported game versions
  • 26.1.2

Curse Maven Snippet

NeoForge

implementation "curse.maven:hpslib-1852767:10076167"

Learn more about Curse Maven

What's new

HPSlib 1.5.0

  • Upgraded TextWrapUtil (org.hp.hpslib.render.TextWrapUtil) with CJK-aware line wrapping across all supported versions:
    • Added public TextWrapUtil.split(Font, Component, int) for unified line splitting, and routed drawWrapped, drawWrappedEllipsis, and lineCount through it so measurement and rendering always agree.
    • Pure non-CJK text keeps vanilla word-based wrapping via Font.split; text containing CJK characters wraps by character while keeping contiguous numbers/Latin tokens intact, avoiding premature line breaks at earlier ASCII spaces and applying kinsoku line-start/line-end punctuation rules.

HPSlib 1.5.0

  • 为全版本 TextWrapUtil(org.hp.hpslib.render.TextWrapUtil)升级中英混排自动换行支持:
    • 新增公开方法 TextWrapUtil.split(Font, Component, int),并让 drawWrapped、drawWrappedEllipsis 与 lineCount 统一走同一切分实现,确保行高测量与实际绘制完全一致。
    • 纯非中日韩文本继续沿用原版 Font.split 按词换行;包含中日韩字符时按字与连续数字/拉丁词组切分,避免因行前出现半角空格导致过早折行或标点孤立行首,同时应用常见中文避头尾排版规则。

This mod has no related projects