zFont does not display the size I specified.

Article ID: 858
Last updated: 05 Feb, 2008
Article ID: 858
Last updated: 05 Feb, 2008
Revision: 1
Views: 4146
Posted: 14 Nov, 1997
by Dean J.
Updated: 05 Feb, 2008
by Dean J.
Problem


zFont does not display the size I specified.


Cause


  1. The defined zDimension size of the font does not exist for the type of font indicated and the next best size has been chosen.
  2. The units indicated to determine size in the zPrPoint object have been incorrectly specified.



Action


  1. Change the size of the font to an available size for the selected font or change the font type so the desired size corresponds to an existing size.
  2. Set the width and height parameters to the correct dimension.

    For example:
    zPrPoint myDimension = new zPrPoint(100,200); will create a font with a width of 10 points and a height of 20 points.
    1 point is approximately 1/72 of an inch.

  3. Set the width relative to the height and indicate the height.

    For example:

    zPrPoint myDefaultSize = new zPrPoint (0, myHeightValue);

    The 0 sets the width relative to the height and myHeightValue is the height previously defined as an integer (as indicated in 2 above).

This article was:   Helpful | Not helpful
Report an issue
Article ID: 858
Last updated: 05 Feb, 2008
Revision: 1
Views: 4146
Posted: 14 Nov, 1997 by Dean J.
Updated: 05 Feb, 2008 by Dean J.

Others in this category