[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Changing fonts in SQR



Doris,

Changing the font's size requires changing 3 elements in your report:
    1. Pitch
    2. Point-size
    3. Char-width

These elements stand in relation one to another, so they have to be
calculated.

Your first calculation is the pitch.  Pitch means characters per intch.
if you have a 10 inch wide paper, and you want to insert 200 characters
in a line, your calculation would be 200/10
which gives you a pitch of 20 (20 characters per inch).
The next stage is to calculate the point-size.  This is the calculation:

        120/pitch=point-size

in our case the point-size would be 6 (120/20)

The next calculation is the Char-width.
This is supposed to be 72/pitch, which in our case is 3.6

As for the line height, you have to play with the LINE-HEIGHT argument
in the declare-layout in order to find the height which will prevent the
fonts from overlaying.

Hope that helps,

Yoav Hornik
-------------------------------------------------------------------
SEMECH SOFTWARE MARKETING LTD.
TEL : (972) - 3 - 5333144
FAX : (972) - 3 - 5333132
Email: <semech@pobox.com>
------------------------------------------------------------------
-----Original Message-----
From: Doris K. Brinson <DBrinson@COMMHOSPINDY.ORG>
To: Multiple recipients of list SQR-USERS <SQR-USERS@list.iex.net>
Date: 29/10/98 00:17
Subject: Changing fonts in SQR


>I am trying to customize benefit enrollment forms. During this I am trying
to
>fit quite a bit of information on two sheets.  One thing that I am doing is
>changing font sizes.  While I can change fonts from 8 pt to 10pt to 12 pt
>without any difficulties, the line spacing is not changing.  To put it
another
>way, if it is  3cm from the top of line 1 to the bottom of line 2 (just an
>example, I didn't measure) in 10 pt font, it still takes 3cm in 8 pt font.
There
>is just more whitespace.  I need to be able to compress the lines together
>when using the smaller fonts to save space. Does anyone know how to
>do this?
>
>Any help would be aprpeciated.
>Doris.
>