...\" ** (c) Copyright 1993, 1994 Hewlett-Packard Company ...\" ** (c) Copyright 1993, 1994 International Business Machines Corp. ...\" ** (c) Copyright 1993, 1994 Sun Microsystems, Inc. ...\" ** (c) Copyright 1993, 1994 Novell, Inc ...\" ** ...\" ** ...\" ** ...\" ** (c) Copyright 1989, 1990, 1992 by Open Software Foundation, Inc. ...\" ** All Rights Reserved. ...\" ** ...\" ** (c) Copyright 1987, 1988, 1989, by Hewlett-Packard Company ...\" ** ...\" ** (c) Copyright 1987, 1988 by Digital Equipment Corporation, ...\" ** Maynard, MA. All Rights Reserved. ...\" ** ...\" ** .TH XmSetFontUnits 3X "" "" "" "" .ds )H Hewlett-Packard Company .ds ]W Motif Release 1.2: May 1992 .SH NAME \fIXmSetFontUnits\fP \- A function that sets the font unit value for a display .SH SYNOPSIS .nf .sS .iS \&#include .sp \n(PDu void XmSetFontUnits (\fBdisplay, h_value, v_value\fI) .ta .5i 1.5i .nf Display \fB* display\fI; int \fBh_value\fI; int \fBv_value\fI; .wH .fi .iE .sE .SH DESCRIPTION .fi \fIXmSetFontUnits\fP provides an external function to initialize font unit values. Applications may want to specify resolution-independent data based on a global font size. This function must be called before any widgets with resolution-independent data are created. See the \fIXmNunitType\fP resource description in the manual pages for \fIXmGadget\fP, \fIXmManager\fP, and \fIXmPrimitive\fP for more information on resolution independence. .PP This function sets the font units for all screens on the display. \fIXmSetFontUnits\fP is obsolete and exists for compatibility with previous releases. Instead of using this function, provide initial values or call \fIXtSetValues\fP for the XmScreen resources \fIXmNhorizontalFontUnit\fP and \fIXmNverticalFontUnit\fP. .nL .ne 12 .IP "\fBdisplay\fP" Defines the display for which this font unit value is to be applied. .IP "\fBh_value\fP" Specifies the value to be used for horizontal units in the conversion calculations. .IP "\fBh_value\fP" Specifies the value to be used for vertical units in the conversion calculations. .SH RELATED INFORMATION .na \fIXmConvertUnits(3X)\fP, \fIXmSetFontUnit(3X)\fP, \fIXmGadget(3X)\fP, \fIXmManager(3X)\fP, \fIXmPrimitive(3X)\fP, and \fIXmScreen(3X)\fP. .ad