MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / TextInputWidget_SetFont

Function TextInputWidget_SetFont

src/Widgets.c:1786–1790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1784}
1785
1786void TextInputWidget_SetFont(struct TextInputWidget* w, struct FontDesc* font) {
1787 w->base.font = font;
1788 w->base.lineHeight = Font_CalcHeight(font, false);
1789 InputWidget_UpdateText(&w->base);
1790}
1791
1792
1793/*########################################################################################################################*

Calls 2

Font_CalcHeightFunction · 0.85
InputWidget_UpdateTextFunction · 0.85

Tested by

no test coverage detected