Skip to content

FontResolution

Uncategorized - no domain claims this class yet. Categorize

Class Documentation

Edit documentation

Font size, outline size and shadow offset for one screen height. See FontResolutionData for how the client picks an entry and scales its values.

Properties

fontSize

U32 = 10
Edit documentation

The font size at screenHeight. The client multiplies it by the scale factor that the requesting UI passes.

outlineSize

U32 = 0
Edit documentation

The width of the outline drawn in GameFontDescription.outlineColor. 0 means no outline.

screenHeight

U32 = 1080
Edit documentation

The game window height, in pixels, that these values are meant for. With FontResolutionData.autoScale, the values are scaled by window height / screenHeight. Without it, the client uses the entry whose screenHeight is closest to the window height.

shadowDepthX

I32 = 0
Edit documentation

Horizontal offset of the drop shadow drawn in GameFontDescription.shadowColor. Negative values are allowed.

shadowDepthY

I32 = 0
Edit documentation

Vertical offset of the drop shadow drawn in GameFontDescription.shadowColor. Negative values are allowed.

Referenced by 1 class · 1 property