fontFamilyInfo

fun fontFamilyInfo(family: String, widthCorrection: Number? = null, mono: Boolean? = null): OptionsMap

Specifies properties of a particular font-family to adjust estimated width of text labels on plot.

Might be useful when some exotic font-family is used that causes issues with the plot layout.

Allows for manual correction in a rare cases when plot layout looks broken due to either overestimation or underestimation of size of text labels on plot.

Can be mixed with other plot features in a plot-expression:

p + ggsize(300, 500) + fontFamilyInfo("HyperFont", mono = true)

Parameters

family

Font family.

widthCorrection

Correcting coefficient applied to default width estimate of a text label.

mono

When true - the font is marked as monospaced.