Compatibility
Minecraft: Java Edition
24w36a
1.21.x
1.20.x
1.19.2–1.19.4
1.18.2
Platforms
Fabric
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Licensed MIT
Published last year
Updated 22 hours ago
Changelog
This is an experimental version for testing non-MSDF-based text rendering.
Originally, Caxton has supported MSDF-based text rendering only. However, there are situations in which this method is not ideal:
- Pixel fonts: the MSDF-based method does not render with crisp borders. However, the ability to have advanced text layout support is useful enough to have better support for these types of fonts.
- Use with shader mods such as Iris Shaders: Caxton currently adds its own core shaders. These work as long as text is rendered outside the world, such as in GUIs or HUDs. Text rendered inside the world, such as on signs and name tags, however, does not render when a shader is active. A conventional bitmap-based pipeline would allow Caxton to work with Iris, albeit with lower graphical quality than with the MSDF-based pipeline.
Configuration
The following options have been added to the font metadata JSON:
{
// Specifies whether to use the MSDF-based rendering method ("msdf") or
// to use glyph bitmaps ("raster").
// "msdf" is recommended for most fonts, but "raster" is more suitable for
// pixel fonts.
// Neither method is currently compatible with Iris Shaders, but support for
// "raster" when a shader is present is planned.
"tech": "msdf",
// Whether to interpolate texels in the bitmap (NOT YET IMPLEMENTED).
// Only has an effect on raster tech.
"blur": false,
// 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.
"max_mipmap": 0
}
Limitations
- Outline text (such as on signs with glow ink) does not render with outlines in
raster
fonts. - Currently, Caxton still uses custom core shaders for
raster
text. This will probably be fixed in a later snapshot.
Dependencies
Files
Metadata
Release channel
AlphaVersion number
0.4.0-alpha.1+1.19.3Loaders
Game versions
1.19.3Downloads
45Publication date
February 23, 2023 at 5:19 AMPublisher
flirora
Owner