XMSETFONTUNIT(3)
β¨ XmSetFontUnit β a whole function that sets the font unit value for a display β¨
okay bestie, this is XmSetFontUnit, and it lives in the library call section of the manual, which is giving very "official business" energy. it's a Motif thing. it's old. it's still here. let's get into it π
πΈ NAME πΈ
XmSetFontUnit β a function that sets the font unit value for a display
π SYNOPSIS π
#include <Xm/Xm.h>
void XmSetFontUnit(
Display * display,
int font_unit_value);
π¦ DESCRIPTION π¦
so XmSetFontUnit is literally just here to hand you an external function that initializes font unit values. that's the whole job. no cap.
why would you even want that? because apps may want to specify resolution-independent data based on a global font size β like, your layout shouldn't fall apart just because someone's running a different DPI, you know? it's giving adaptable. it's giving main character. if you want the whole lore on resolution independence, go read the XmNunitType resource description in the reference pages for XmGadget, XmManager, and XmPrimitive.
and the scope? this function sets the font units for all screens on the display. every single one. all of them. periodt.
π¨ NOTE:XmSetFontUnitis obsolete and only exists for compatibility with previous releases. it is not the moment anymore. instead of using this function, you should either provide initial values, or callXtSetValuesfor theXmScreenresourcesXmNhorizontalFontUnitandXmNverticalFontUnit. do that instead, bestie, i'm begging π
now, the arguments, because we do NOT skip the arguments:
displayβ defines the display for which this font unit value is to be applied. like, which screen situation are we talking about here.font_unit_valueβ specifies the value to be used for both the horizontal and vertical font units in the conversion calculations. one number, two jobs. multitasking queen π
π RELATED π
the girlies and guys this one hangs out with:
and that's the whole page, babe ππ this was XmSetFontUnit, from the library call manual β sourced straight from that XmSetFontUnit(library call) footer energy, dated whenever this page was last blessed. go forth and be resolution-independent π«Άβ¨π
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms