HD Fonts

_images/icon15.webp

The default font texture snippet.

File location

/assets/minecraft/optifine/font/**/*.{png,properties}

Danger

This feature is obsolete. Do not use it. Minecraft's font system has fixed the issues HD Fonts was created to resolve.
Characters outside the ASCII range are not supported.

HD Fonts can define custom widths for ASCII characters.

OptiFine first looks for fonts in the /assets/minecraft/optifine/font folder. This allows having a custom font that works in vanilla and a higher-resolution font that requires OptiFine to display properly.

To allow for more control over the widths of individual characters, OptiFine offers a way to specify them manually. Create a properties file corresponding to the font you want to customize.

Properties

width.<ASCII>

Type: Integer

Values: <ASCII> is from 0 to 255

Required

The width of the ASCII character.

blend

Type: Boolean

Optional

Whether to use alpha blending.

offsetBold

Type: Float

Optional

Horizontal offset by which to render the bold copy of a glyph.


Assumes the latest OptiFine & Minecraft versions.
Updated to commit 83d482c3.