26.2-neoforge-HPSlib-1.5.0
Curse Maven Snippet
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 routeddrawWrapped,drawWrappedEllipsis, andlineCountthrough 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.
- Added public
HPSlib 1.5.0
- 为全版本
TextWrapUtil(org.hp.hpslib.render.TextWrapUtil)升级中英混排自动换行支持:- 新增公开方法
TextWrapUtil.split(Font, Component, int),并让drawWrapped、drawWrappedEllipsis与lineCount统一走同一切分实现,确保行高测量与实际绘制完全一致。 - 纯非中日韩文本继续沿用原版
Font.split按词换行;包含中日韩字符时按字与连续数字/拉丁词组切分,避免因行前出现半角空格导致过早折行或标点孤立行首,同时应用常见中文避头尾排版规则。
- 新增公开方法
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects