next up previous
Next: x_fontmanager Up: simxlib Previous: xkeysymnames

x_font


     NAME
	  x_font - part	of Simula to Xlib interface

     DESCRIPTION
	     Xlib_Font class X_Font(display);
	     ref(Xlib_Display)	 display;
	  See XFont for	description.

	  SUPERS: Xlib_font,Xlib_object;
	  KIND:	Abstract, single XFont is the only sub-class
	  INIT:	Initializes itself;
	  Sequencing: (TextWidth/GetFontProperty)*

     USER OPERATIONS
     TextWidth
	     integer procedure TextWidth(string);
	     Text string;
	  Returns the Width of a string	in this	Font. For more complex
	  measurments on Fonts and text	strings, see XFontMetrics.

     GetFontProperty
	     boolean procedure GetFontProperty(atom,value_return);
	     Name value_return;
	     Integer atom,value_return;
	  Gets the value  of  the  specified  font  property,  'atom'.
	  Returns  FALSE  if  'atom' was not defined. See Logical Font
	  Description Conventions in  the  X  documentation  for  more
	  information on font properties.