Repository navigation
v0.1.5
v0.1.5
English
RaTeX-CMP 0.1.5 upgrades the bundled RaTeX engine to 0.1.5, adds JS/Wasm browser support, and improves cross-platform CJK and emoji rendering.
Highlights
- Added Web support for both
js(IR)andwasmJstargets. - Upgraded upstream RaTeX from
0.1.4to0.1.5. - Added CJK and emoji fallback font handling across Android, iOS, JVM/Desktop, JS, and Wasm.
- Added Web example entry points and showcase examples for CJK, emoji,
\htmlStyle, explicit limits, and transparent color. - Updated library version and dependency examples to
0.1.5.
Added
- New
webMainimplementation powered byratex-wasm@0.1.5. - Web sample commands:
./gradlew :example:jsBrowserDevelopmentRun./gradlew :example:wasmJsBrowserDevelopmentRun
- App-provided fallback font APIs:
RaTeXFontLoader.registerFont(...)RaTeXFontLoader.registerCjkFallbackFont(...)RaTeXFontLoader.registerEmojiFallbackFont(...)
- Additional validation formulas for
\iiint,\sum\limits,\htmlStyle,\middle, and transparent colors.
Fixed / Improved
- Fixed Web dependency resolution so JS/Wasm targets use
ratex-wasm@0.1.5. - Improved platform glyph rendering and Unicode fallback selection.
- Improved CJK and emoji rendering stability in inline formulas.
- Updated Web docs for asynchronous WASM initialization.
Upstream RaTeX Changes Included
- Lazy font loading and caching.
\htmlStyleparsing and layout support.- Explicit
\limitsbehavior in text style. - Transparent color/background support.
- Integral metric fixes.
- Additional upstream golden test coverage.
Upgrade
implementation("io.github.darriousliu:ratex:0.1.5")For JVM Desktop native runtime, use the matching native artifact:
runtimeOnly("io.github.darriousliu:ratex-native-darwin-aarch64:0.1.5")中文
RaTeX-CMP 0.1.5 升级了底层 RaTeX 到 0.1.5,新增 JS/Wasm 浏览器端支持,并改进了跨平台 CJK 与 emoji 渲染。
重点变化
- 新增
js(IR)与wasmJsWeb 目标支持。 - 底层 RaTeX 从
0.1.4升级到0.1.5。 - 改进 Android、iOS、JVM/Desktop、JS、Wasm 上的 CJK 与 emoji fallback 字体处理。
- 新增 Web 示例入口,并补充 CJK、emoji、
\htmlStyle、显式 limits、透明颜色等示例。 - 主库版本与 README 依赖示例更新为
0.1.5。
新增
- 基于
ratex-wasm@0.1.5的webMain实现。 - Web 示例运行命令:
./gradlew :example:jsBrowserDevelopmentRun./gradlew :example:wasmJsBrowserDevelopmentRun
- 应用侧 fallback 字体注册 API:
RaTeXFontLoader.registerFont(...)RaTeXFontLoader.registerCjkFallbackFont(...)RaTeXFontLoader.registerEmojiFallbackFont(...)
- 新增验证公式,覆盖
\iiint、\sum\limits、\htmlStyle、\middle、透明颜色等场景。
修复 / 改进
- 修复 Web 依赖解析,确保 JS/Wasm 使用
ratex-wasm@0.1.5。 - 改进平台字形绘制与 Unicode fallback 选择。
- 提升 CJK 与 emoji 在行内公式中的渲染稳定性。
- 文档补充 Web 端 WASM 异步初始化说明。
包含的上游 RaTeX 变化
- 字体懒加载与缓存优化。
- 支持
\htmlStyle解析与布局。 - 修复 text style 下显式
\limits的行为。 - 支持透明颜色 / 背景。
- 修复部分积分符号 metrics。
- 增加上游 golden test 覆盖。
升级方式
implementation("io.github.darriousliu:ratex:0.1.5")JVM Desktop native runtime 也需要使用匹配的 0.1.5 artifact,例如:
runtimeOnly("io.github.darriousliu:ratex-native-darwin-aarch64:0.1.5")